Program to find minimum Number

/* Program to find minimum Number */

class P10
{    
     public static void main(String args[])
     {
            int a =3 , b = 7 , c = 0 ;
                int result;
            result = ( a < b ? a : b ) < c ? ( a < b ? a : b ) : c ;
        System.out.println(" The minimum number in "+a+", "+b+","+c+" is "+result);   
  

      }
}

0 comments:

Post a Comment

 
 
 
 


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