Computer Science, asked by haseenullahkhan777, 4 months ago

write a programe that prompts the user for a measurment in meters and then converts it to miles,feet and inches . In python language​

Answers

Answered by kuhu005
3

Explanation:

d_ft = int(input("Input distance in feet: "))

d_inches = d_ft * 12

d_yards = d_ft / 3.0

d_miles = d_ft / 5280.0

print("The distance in inches is %i inches." % d_inches)

print("The distance in yards is %.2f yards." % d_yards)

print("The distance in miles is %.2f miles." % d_miles)

output:

Input distance in feet: 100

The distance in inches is 1200 inches.

The distance in yards is 33.33 yards.

The distance in miles is 0.02

Answered by Anonymous
2

different coding language have different outputs

please let me know which one you use

Similar questions