```
# Program to ask distance in kilometer and convert into miles
"""
In this program, we have to calculate the miles when kilometer is given
We have the formula,
miles = kilometer*0.62
To calculate this we have to ask the distance in kilometer
"""
k = float(input('enter the distance in kilometer'));
mile=k*0.62
print("Distance in miles is", mile)
"""
If the values are explicitly given.
Then we do not have to ask the values from the user
"""
k=20
mile=k*0.62
print("Distance in miles is", mile)
```

# 9. Write a program in python to ask distance in kilometer and convert into miles.

##### Related Posts

## 23. Write a program to ask n number and print the sum of first n natural numbers.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Enter the number (N) Step 3: S = N * (N +…

## 21. Write a program to input principal, rate, time and display total amount.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm: Step 1: Start Step 2: Input Principal, Time and Rate (P, T, R) Step 3: I =…