Computer Science, asked by abhinavraj0001, 1 year ago

write a program to enter distance in cm and convert it into m cm

Answers

Answered by dhruvbadaya1
0

Here is the C++ code:
#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;
}


abhinavraj0001: bro can you make the answer for bluej
Similar questions