Write a program in python to enter your height in centimeters (cm) and convert into feet and inches.
cm=int(input("Enter your height in centimeters: "))
feet=cm//30
rcm=cm%30
inches=rcm*0.393701
print("Your height is: ",feet, " Feet ", inches, " Inches")
Output:-
Enter your height in centimeters: 172
Your height is: 5 Feet 8.661422 Inches
0 Comments