answersLogoWhite

0

Here is something I made to convert height while learning python.

height_cms = 190

inches = height_cms / 2.54

feet = inches / 12

remainder_inches = inches % 12

print "%d cms is %d feet and %d inches." % (height_cms, feet, remainder_inches)

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you convert meters and centimeters to feet and inches in C?

You can convert meters and centimeters to feet and inches in C by first converting the total length to inches. Then, divide the total inches by 12 to get the feet and the remainder will give you the inches. Here's a simple formula you could use: total_inches = (meters * 100 + centimeters) * 0.393701; feet = total_inches / 12; inches = total_inches % 12;


Convert 5 ft 5 inches to metric?

Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.Convert everything to inches, then multiply by 2.54 to get centimeters - or by 0.0254 to get meters.


What is 5 foot 7 inches in meters and centimeters?

The answer is 170.18 centimeters. One inch is equal to 2.54 centimeters. To convert inches into centimeters, multiply the 67 inches by 2.54.


How will you convert inches into meter and centimeter?

-- take the number of inches-- multiply it by 0.0254-- the result is the number of meters--------------------------------------------------------- take the number of meters-- everything to the left of the decimal point represents whole meters-- take everything to the right of the decimal point-- move the decimal point two places to the right-- the result is the number of centimeters, in addition to the number of whole meters


How many centimeters is 151 feet 11 inches?

The answer is 4630.42 centimeters, or 4.63042 meters. One inch is equal to 2.54 centimeters. To convert inches into centimeters, multiply the 1823 inches by 2.54.


What is 163 meter converted to feet and inches?

163 meters = 16300 centimeters Divide the centimeters by 2.54 to get them in inches. Then divide the inches by 12 to convert inches to feet.


Convert 4 ft 11 inches to meters and centimeters?

4 feet 11 inches is equivalent to 1.4986 meters or 149.86 centimeters.


How many meters and centimeters are there in 5 feet 8 inches?

5' 8" is equal to 1.73 meters OR 173 centimeters.


How long is 20 inch in centimeters?

The measurement 20 inches is the same as 50.8 centimeters. This is because 1 inch is the same as 2.54 centimeters. You can convert the 20 inches into meters aswell which would be 0.508 meters.


What is 5'7 in kilograms?

To convert height from feet and inches to centimeters, first convert feet to inches (5 feet = 60 inches) and add the remaining inches (60 inches + 7 inches = 67 inches). Then, multiply the total inches by 2.54 to convert to centimeters (67 inches * 2.54 = 170.18 cm). To convert centimeters to meters, divide by 100 (170.18 cm / 100 = 1.70 m). Finally, to convert meters to kilograms, multiply by 100 to get a rough estimate (1.70 m * 100 = 170 kg).


Convert a volume of 1.84 cubic inches into cubic centimeters and cubic meters?

1.84 cubic inches = 30.1521978 cubic centimeters = 0.31521978 cubic metres


How do you convert cubic inches into cubic meters?

1 inch = 2.54 centimeters 1 meter = 100 centimeters (1 inch) x (2.54 centimeters)/cubic inches x (1 cubic meter)/(100 centimeters) 1 cubic inches = 0.000016387 cubic meters for every cubic inches, multiply it with 0.000016387 cubic meters you may try this online converter next time http://www.rillocenter.com/convert/volume.html