Feeds
已回答
Write a function that receives an input argument of a number of kilometers (km) and will output the conversions into both miles (mi) and US nautical miles (n.m.). Use the conversions: 1 km = 0.621 mi and 1 km = 0.540 n.m.
x=input("Enter a valuein Km :"); mi=x*0.621; nm=x*0.540; mi nm
Write a function that receives an input argument of a number of kilometers (km) and will output the conversions into both miles (mi) and US nautical miles (n.m.). Use the conversions: 1 km = 0.621 mi and 1 km = 0.540 n.m.
x=input("Enter a valuein Km :"); mi=x*0.621; nm=x*0.540; mi nm
8 months 前 | 0