Program to converts inches to centimeters

/*  Program to converts inches to centimeters */

class P6
{
    public static void main(String args[])
    {
        float inches = 16.9F, cm ;       
        cm = 2.54F * inches ;
        System.out.println(""+inches+" inches = "+ cm +" centimeters");
               
    }
}

0 comments:

Post a Comment

 
 
 
 


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