velimir

Skakulci

Jan 19th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x, y, z, x2, y2, i, n;
  8.     cin >> x >> y >> z;
  9.     x2 = x;
  10.     y2 = y;
  11.     for(i=-1; x2<y; i++) x2++;
  12.     for(n=-1; y2<z; n++) y2++;
  13.     if(i>n)cout << i;
  14.     else cout << n;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment