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