Computer Science, asked by yusraayyubkhan2007, 4 months ago

Write a python program to convert kilometers to miles(1km= 0.62137 miles)

Answers

Answered by lovyboy
0

Answer:

# Collect input from the user

kilometers = float(input('How many kilometers?: '))

# conversion factor

conv_fac = 0.621371

# calculate miles

miles = kilometers * conv_fac

print('%0.3f kilometers is equal to %0.3f miles' %(kilometers,miles))

Similar questions