Tuesday, 14 May 2013

JAVA Integral Promotion

class file_name{
         public static void main(String ar[]){
                    char c='o';

                     int i=10;
                     Float f=10.2f;
                     double d;
                     
                     d=c*i/f;

                     System.out.println(d);
    
         }
}


OutPut
------------------------------
0

No comments:

Post a Comment