Javatpoint Logo
Javatpoint Logo

Program to Convert Feet to cm

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

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

cm = 30.48 * feet.

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

Output:

Value in Centimeter is: 1219.2

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

Output:

Value in Centimeter is: 304.8

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

Output:

Value in Centimeter is: 609.6 

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

Output:

Enter the length in feet: 55
The length in centimeter 1676.4






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA