Write a Python Program to Convert Centimeters to Meters and Kilometers. This Python example allows entering the centimeters and converts them to kilometers and meters. As we recognize, one meter equals 100 centimeters, and one kilometer equals 100000 centimeters.
# Centimeter to Meters and Kilometers
centimeter = float(input("Please Enter the Centimeters = "))
meter = centimeter/100
kilometers = centimeter/100000
print("%.2f Centimeters = %.2f Meters" %(centimeter, meter))
print("%.2f Centimeters = %.2f Kilometers" %(centimeter, kilometers))

Also Read
- Python Program to Convert Celsius to Fahrenheit
- Python Program to Convert Decimal to Binary, octal, and Hexadecimal