Home » Program to Convert m to Feet and Inches

Program to Convert m to Feet and Inches

by Online Tutorials Library

Program to Convert m to Feet and Inches

In this article, we will learn how to convert the length, which is given in meter to the length in feet and inches value.

Following are the two formulas which help us to convert the value in meter to the value in feet and inches:

  1. 1 meter = 39.37inch
  2. 1 meter = 3.281feet

By using above formulas, we find the following two formulas:

  1. inch = 39.37 * meter (m)
  2. feet = 3.281 * meter (m)

Program 1: Write a Program in C for converting the meter to feet and inches.

Output:

The value of 40 meter in Inches is:  1574.80  The value of 40 meter in feet is: 131.24  

Program 2: Write a Program in PHP for converting the meter to feet and inches.

Output:

The value of 10 meter in Inches is: 393.7  The value of 10 meter in Feet is: 32.81  

Program 3: Write a Program in Java for converting meter to feet and inches.

Output:

The value of 20 meter in Inches is: 787.40  The value of 20 meter in Feet is: 65.62  

Program 4: Write a Program in Python for converting meter to feet and inches.

Output:

Enter the height in meters: 167  The length in feet 547.93  The length in inches 6574.79  

Next TopicPrograms List

You may also like