what is the C++ program to convert meter value to centimeter?
Answers
Answered by
0
Answer:
Explanation:
#include<iostream>
using namespace std;
int main()
{
float km, met,cent;
cout << "\n\n Convert centimeter into meter and kilometer :\n";
cout << "--------------------------------------------------\n";
cout << " Input the distance in centimeter : ";
cin >> cent;
met = (cent/100);
km = (cent/100000);
cout << " The distance in meter is: "<< met << endl;
cout << " The distance in kilometer is: "<< km << endl;
cout << endl;
return 0;
Similar questions