Python program to convert kilometers to miles


Write a program in python program to convert kilometers to miles

----------------------------------------

km=float(input("Enter the distance in kilometers : "))
conv_fac=0.621371
mile=km*conv_fac
print("The entered distance in Miles are :",mile)

----------------------------------------

Output-

Enter the distance in kilometers : 20

The entered distance in Miles are : 12.42742


Post a Comment

0 Comments