Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- guest = int(input())
- budget = int(input())
- cuvert = guest * 20
- if cuvert <= budget:
- money = budget - cuvert
- fireworks = math.trunc(money - (money * 0.4))
- money_end = math.trunc(money - fireworks)
- print (f"Yes! {math.trunc(money_end)} lv are for fireworks and {math.trunc(fireworks)} lv are for donation.")
- else:
- money1 = cuvert - budget
- print (f"They won't have enough money to pay the covert. They will need {math.trunc(money1)} lv more.")
Advertisement
Add Comment
Please, Sign In to add comment