Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- days = int(input())
- hours = int(input())
- total = 0
- for i in range(1, days + 1):
- day_price = 0
- for j in range(1, hours + 1):
- if i % 2 == 0 and j % 2 == 1:
- day_price += 2.5
- elif i % 2 == 1 and j % 2 == 0:
- day_price += 1.25
- else:
- day_price += 1
- total += day_price
- print(f'Day: {i} - {day_price:.2f} leva')
- print(f'Total: {total:.2f} leva')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement