Program to find minimum Number


     # include <iostream.h>
     int main( )
     {
               int a =3 , b = 7 , c = 0 ;
                    int temp, result;
        temp = a < b ? a : b ;
             result = temp < c ? temp : c ;
              cout<<"The minimum number in"<<a<<","<<b<<","<<c<<" is "<< result;   
         return 0;
      }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|