Question:  At lunch a waiter had 10 customers and 5 of them didn't leave a tip. If he got $3 each from the ones who did tip, how much money did he earn? 

Solution program:
answer=(3.0*(10.0-5.0))
print(answer)

Answer: 15