Monday, 11 March 2013

30.program for input float number



class variety
{
            public static void main(String args[])
            {
                       
                        int n1=Integer.parseInt(args[0]);
                        System.out.println("Integer:"+n1);
           
                        float n2=1.24f;
                        System.out.println("Float:"+n2);
           
                       
            }
           
           
}

No comments:

Post a Comment