You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
204 B
Python
8 lines
204 B
Python
5 years ago
|
print("Input your height: ")
|
||
|
h_ft = int(input("Feet: "))
|
||
|
h_inch = int(input("Inches: "))
|
||
|
|
||
|
h_inch += h_ft * 12
|
||
|
h_cm = round(h_inch * 2.54, 1)
|
||
|
|
||
|
print("Your height is : %d cm." % h_cm)
|