Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- // ANDProcessors
- int main()
- {
- double processors, men, days;
- cin >> processors >> men >> days;
- double hours = men * days * 8;
- double workout = floor(hours / 3);
- if (workout < processors)
- {
- printf("Losses: -> %.2f BGN\n", (processors - workout) * 110.10);
- }
- else
- {
- printf("Profit: -> %.2f BGN\n", (workout - processors) * 110.10);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement