Friday, 2 November 2012

Length Conversion...


#include <iostream>
using namespace std;
int main ()
{
double meters,inche,centimeter;
cout << "Enter length in meters:"<<endl;
cin >> meters;
inche=39.370079*meters;
centimeter=100*meters;
cout << "length in inches is = "<< inche <<endl;
cout << "length in cent is = " << centimeter << endl;
return 0;
}

No comments:

Post a Comment