Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side_size = float(input())
- sheets = int(input())
- sheet_cover = float(input())
- covered = 0
- box_size = 6 * side_size ** 2
- for sheet in range(1, sheets + 1):
- if sheet % 3 == 0:
- covered += sheet_cover * 0.25
- else:
- covered += sheet_cover
- print(f'You can cover {((covered / box_size) * 100):.2f}% of the box.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement