Computer Science, asked by snehasarkar5150, 2 days ago

write a python program to convert cm value into meter and km .



fast pls it's urgent​

Answers

Answered by anandm523
0

Answer:

Write a Python Program to Convert Centimeters to Meters and Kilometers. This Python example allows entering the centimeters and converts them to kilometer and meter. As we recognize, one meter equals 100 centimeters, and one kilometer equals 100000 centimeters.

#Centimeter to Meters and kiometers

centimeter = fioat(input("Please Enter the Centimeters = "))

meter centimeter/100

kilometers centimeter/100000

= print ("%2f Cerntimeters = %.2i meters" %(centimeter, meters))

= print ("%2f Cerntimeters = %.2i kilometers" %(centimeter kilometers))

I hope it helps you...

Attachments:
Similar questions