1. Engineering
  2. Computer Science
  3. centimeters to millimeters meters and kilometers write a program...

Question: centimeters to millimeters meters and kilometers write a program...

Question details

☆ centimeters to millimeters, meters, and kilometers write a program that takes one floating point input from the user. This value is a length in centimeters. Then convert the inputed number of centimeters nto millimeters, meters, and kilometers. Remember 1 m = 100 cm 1 km 1000 m, 1 cm 10 mm. See the sample runs: Sample run 1 Enter length in cm:5 5 centimeters is 50 millimeters 0.05 meters Se-05 kilometers Sample run 2: Enter length in cm: 2800 1080 centimeters is 10800 millimeters 10 meters 0.01 kilometers YOUR ANSWER We recommend you take a quick tour of our editor before you proceed. The timer will pause up to 90 seconds for the tour. Start tour For help on how to read input and write output in C+t, click here. Original Code C + #include <iostream> int main)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution