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