You are on page 1of 1

# Program code to convert Kilometers to Miles

km = int(input("Enter the value in kilometers: "))

# 1 Km = 0.621371 Mil
ratio = 0.621371

# Converting km to mi.
mi = km * ratio

print("The entered value in Miles: ", mi)

You might also like