Question #173184

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.


Expert's answer

ps = int(input('Number of passengers: '))
ds = int(input('Distance from point of origin to destination: '))

print('Expense: P', ps * ds)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS