Computer Science, asked by bishalbarman017, 5 hours ago

write a short program that asks for your height in cm and then converts your height to feet and inches​

Answers

Answered by ak9973932
2

Explanation:

t = int(input("Enter your height in centimeters: "))

htInInch = ht / 2.54;

feet = htInInch // 12;

inch = htInInch % 12;

print("Your height is", feet, "feet and", inch, "inches")

OUTPUT

Enter your height in centimeters: 162

Your height is 5.0 feet and

Similar questions