Programming Examples
Python program that asks your height in centimeters and converts it into foot and inches
WAP that asks your height in centimeters and converts it into foot and inches.
Solution
cm=int(input("Enter height in Centimeters : "))
foot=cm//30
rcm=cm%30
inches=rcm*0.393701
print("Height is : ",foot," Foot ",inches," Inches ")
Output