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.
ps = int(input('Number of passengers: '))
ds = int(input('Distance from point of origin to destination: '))
print('Expense: P', ps * ds)
Comments
Leave a comment