write a program to input the kilometre .convert kilometre to decimetre.print the answer
Answers
Answered by
0
Answer:
Given length in centimeter, the task is to convert it into meter and kilometer.
Examples :
Input: Length in centimeter = 1000
Output:
Length in meter = 10 m
Length in kilometer = 0.01 km
Input: Length in centimeter =6540
Output:
Length in meter = 65.4 m
Length in kilometer = 0.0654 km
Formula to be used:
1m = 100cm
1km = 100000cm
Output:
Length in meter = 10 m
Length in kilometer = 0.01 km
Attachments:
Similar questions