Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- number_processors = int(input())
- number_workers = int(input())
- work_days = int(input())
- processor_number = number_processors
- hours = number_workers * work_days * 8
- processors = math.floor(hours / 3)
- profit_or_lose = number_processors - processors
- lose_or_profit = profit_or_lose * 110.10
- format_float = "{:.2f}".format(lose_or_profit)
- if processors > number_processors:
- print(f"Profit: -> {format_float} BGN")
- else:
- print(f"Losses: -> {format_float} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement