Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x, y, z, x2, y2, i, n;
- cin >> x >> y >> z;
- x2 = x;
- y2 = y;
- for(i=-1; x2<y; i++) x2++;
- for(n=-1; y2<z; n++) y2++;
- if(i>n)cout << i;
- else cout << n;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment