write a python program to get input distance and input distance and print fare for the passenger according to distance and fare
Answers
Answered by
0
Answer:
distance=int(input("enter how far the passenger had traveled in km:"))
fare=int(input("enter the fare per km:"))
print("the distance traveled=",distance)
print("fare per km is ",fare)
print("total fare needed to be paid is",fare*distance)
Similar questions
Math,
5 months ago
Art,
5 months ago
Social Sciences,
5 months ago
Math,
10 months ago
Political Science,
10 months ago
Math,
1 year ago