Python Program to Convert Kilometers to Miles

Spread the love

In this program, you will learn how to write python Program to Convert Kilometers to Miles and Miles to Kilometers.

We will calculate by using constant value . one km is equals to 0.621371 miles.

Km to Miles Program

k=5 c=0.621371 print ("Miles",k*c)

Output:

Miles 3.106855

Miles to Km program

m=3.106855 c=0.621371 print ("Kilometers",m/c)

Output:

Kilometers 5.0
admin

admin

Leave a Reply

Your email address will not be published. Required fields are marked *