Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, c;
- cout << "VVedite a, b, c: ";
- cin >> a >> b >> c;
- if ((a > 3 && a < 23) && (b > 3 && b < 23) && (c > 3 && c < 23))
- {
- if (a > 0)
- a = -a;
- if (b > 0)
- b = -b;
- if (c > 0)
- c = -c;
- }
- else {
- if(a>b)
- {
- if (b > c)
- c = c + 3;
- else
- b = b + 3;
- } else{
- if (b > c)
- c = c + 3;
- else
- a = a + 3;
- }
- }
- cout << a<<" " << b <<" "<< c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement