Searching...

Length Conversion.

15:59


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

0 comments:

Post a Comment

Thanks For Your FeedBack....