Write a program in Python to convert miles into kilometres.
Answers
Answered by
1
Answer:
Following program shows you how to convert miles to kilometers.
In this program we get miles from user, once we get those we need to multiply with 1.6 so that we get in kilometers
miles = float(input("Please enter miles:")) kilometers = miles * 1.6 print(kilometers, " Kilometers")
Output:
Please enter miles: 22 35.2 Kilometers
Similar questions