CodeRams Practice Problem Archive |
---|
Finished |
Converting from one unit of measurement to another is very useful. Make a program that can convert between, feet, inches, meters, centimeters, miles, and kilometers. Use the following conversions to get the correct answer: .08333 feet in 1 inch, 3.28084 feet in 1 meter, 0.0328084 feet in one centimeter, 5280 feet in 1 mile, and 3280.84 feet in 1 kilometer.
One line describing a conversion: Ex: "The road is 1.5 miles, how many kilometers is it."
Print the value of the conversion and the unit.
I am 1.5 meters, how many feet am I
4.92126 feet
The first number and unit will always be right before the ",". after the "," it will always "how many" then the unit you are converting to.
Name |
---|