14.WAP to convert a distance in foot and inch

CODE:

distance=int(input("Enter the distance in inches\n"))

f=distance//12

i=distance%12

print("The foot is ",f," and the inches are ",i)

CODE:
Enter the distance in inches
40

The foot is 3 and the inches are 4

Comments

Popular posts from this blog