Home » Program to Convert mm to cm

Program to Convert mm to cm

by Online Tutorials Library

Program to Convert mm to cm

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

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

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

Output of Above C program:

Value of 400 millimeter in Centimeter is: 40.00  

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

Output of Above PHP program:

Value of 10 millimeter in Centimeter is 1  

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

Output of Above Java program:

Value in Centimeter is: 0.25  

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

Output of Above Python program:

Enter the length in mm:1500  The length in centimeter 150.0  

You may also like