Computer Science, asked by reenasingh98, 10 months ago

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 pavithrabaskaran303
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