Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- agency = input()
- ticket = int(input())
- kid_ticket = int(input())
- ticket_price = float(input())
- service = float(input())
- total_adult = (ticket_price + service) * ticket
- total_kid = (0.3 * ticket_price + service) * kid_ticket
- total = total_adult + total_kid / 5
- print(f'The profit of your agency from {agency} tickets is {total:.2f} lv.')
Add Comment
Please, Sign In to add comment