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;
      }

No comments:

Post a Comment