Advertisement
DMG

Najveca suma

DMG
Apr 15th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. main()
  4. {
  5.       int a, b, c, t;
  6.       bool p = false;
  7.      
  8.       cin >> a;
  9.       t = a;
  10.      
  11.       cin >> b;
  12.      
  13.       if (b<t)
  14.          t = b;
  15.          
  16.       cin >> c;
  17.      
  18.       if (c<t)
  19.          t = c;
  20.      
  21.       if (a!=t)
  22.          cout << a << endl;
  23.       else
  24.           p = true;
  25.          
  26.       if (b!=t || p==true)
  27.          cout << b << endl;
  28.       else
  29.           p == true;
  30.      
  31.       if (c!=t || p==true)
  32.          cout << c << endl;
  33.  
  34.       system("PAUSE");
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement