Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $processors = readline();
- $workers = readline();
- $days = readline();
- $workHours = $workers * $days * 8;
- $procReady = (int) floor($workHours / 3);
- if ($procReady < $processors) {
- printf("Losses: -> %.2f BGN", ($processors - $procReady) * 110.10);
- } else {
- printf("Profit: -> %.2f BGN", ($procReady - $processors) * 110.10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement