Computer Science, asked by abhaykd1332, 1 month ago

what is the C++ program to convert meter value to centimeter?

Answers

Answered by Star45673
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