Javatpoint Logo
Javatpoint Logo

Program to Convert centimeter to meter

Here, we will learn how to convert the length value, which is given in centimeter to the length in meter.

If we want to convert the value of cm into meter value, then we have to use the following formula:

From the above formula, we have created the following formula for calculating the value in meter.

Program 1: Write a Program in C for converting the value of cm into meter.

Output of above C program:

Value in meter is: 0.4

Program 2: Write a Program in PHP for converting the value of cm into meter.

Output of above PHP program:

Value of 100 cm in meter is 1

Program 3: Write a Program in Java for converting the value of cm into meter.

Output of Java program:

Value in meter is: 0.40

Program 4: Write a Program in Python for converting the value of cm into meter.

Output of python program:

Enter the length in cm: 25
The length in meter 0.25





Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA