Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X = int(input())
- Y = float(input())
- Z = int(input())
- workers = int(input())
- Grapes = X * Y
- Wine = 40/100 * Grapes/2.5
- if Wine < Z:
- needed = Z - Wine
- print(f"It will be a tough winter! More {round(needed)} liters wine needed.")
- elif Wine > Z:
- remain = Wine - Z
- for_workers = remain/workers
- print(f"Good harvest this year! Total wine: {round(Wine)} liters.")
- print(f"{round(remain)} liters left -> {round(for_workers)} liters per person.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement