Create a program that will accept number of passengers and distance from point of origin to destination. Calculate the expense of the passenger if the fare is P20.00 per kilometer.
sample output:
passenger count: 5
distance :2
total fare is : P200.00
pass_count = int(input("Enter the number of passengers: "))
dis = int(input("Enter the distance: "))
fare_per_km = 20.00
total_fare = (dis * fare_per_km) * pass_count
print("Total Fare:", total_fare)
Comments
Leave a comment