Python program convert kilometers to miles


Program:

n=float(input("Enter value in kilometers: "))

a=n*.621371

print("The miles of given kilometers is %.2f" %a)

Output:

Enter value in kilometers: 5

The miles of given kilometers is 3.11



12 views0 comments

Recent Posts

See All