193k views
1 vote
write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles.

User Xanco
by
4.4k points

1 Answer

6 votes

Answer:

try this

Step-by-step explanation:

km = float(input('Kilometers: '))

nm = (km * 5400) / 10000

print('%0.4f km = %0.4f Nautical Miles' %(km,nm))

User Nisfan
by
4.6k points