Write a program that inputs the length of two pieces of fabric in feet and inches ( as whole numbers) and prints the total
enter the feet: 3
enter the inches: 11
enter the feet: 2
enter the inches : 5
feet = int(input('enter the feet: '))
inch = int(input('enter the inches: '))
feet += int(input('enter the feet: '))
inch += int(input('enter the inches: '))
feet += inch // 12
inch %= 12
print(f'total {feet} feet {inch} inches')
Comments
Leave a comment