Given length in centimeter, the task is to convert it into meter and kilometer.
Input: Length in centimeter = 1000
Length in meter = 10 m
Length in kilometer = 0.01 km
Input: Length in centimeter =6540
Length in meter = 65.4 m
Length in kilometer = 0.0654 km
Formula to be used:
1m = 100cm 1km = 100000cm
Length in meter = 10 m Length in kilometer = 0.01 km
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Program to convert Centimeter to Feet and Inches
- Program to Convert BCD number into Decimal number
- Convert given time into words
- Convert the undirected graph into directed graph such that there is no path of length greater than 1
- Check whether it is possible to convert A into B
- Minimum number of operations to convert array A to array B by adding an integer into a subarray
- Minimum splits required to convert a number into prime segments
- Min steps to convert N-digit prime number into another by replacing a digit in each step
- Minimum flips required to convert given string into concatenation of equal substrings of length K
- Convert 1 into X in min steps by multiplying with 2 or 3 or by adding 1
- Convert given Decimal number into an irreducible Fraction
- Program for converting hours into minutes and seconds
- Program to Convert Km/hr to miles/hr and vice versa
- Program to convert given number of days in terms of Years, Weeks and Days
- Program to convert speed in km/hr to m/sec and vice versa
- Program to convert KiloBytes to Bytes and Bits
- Program to convert a given number to words
- Program to convert a given number to words | Set 2
- Program to convert time from 12 hour to 24 hour format
- Python program to convert time from 12 hour to 24 hour format
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.