Program to converts inches to centimeters


     # include <iostream.h>
     int main( )
     {
    float inches, cm ;
    cout<< " Enter length in inches : ";
    cin >> inches;
    cm = 2.54 * inches ;
    cout <<inches <<" inches = " << cm << " centimeters . \n ";
    return 0;
      }

0 comments:

Post a Comment

 
 
 
 


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