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
English,
4 months ago
India Languages,
4 months ago
Math,
4 months ago
Math,
8 months ago
Political Science,
8 months ago
Math,
11 months ago
Chemistry,
11 months ago