Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <math.h>
  4. #include <algorithm>
  5. #include <vector>
  6. #include <array>
  7. #include <functional>
  8.  
  9. using namespace std;
  10. int main()
  11. {
  12.   int sk[4];
  13.   cin >> sk[0] >> sk[1] >> sk[2] >> sk[3];
  14.   cout << sk[0];
  15.   for (int i = 0; i < 3; i++)
  16.   {
  17.     if (sk[i] < sk[+ 1])
  18.     {
  19.       cout << "<" << sk[+ 1];
  20.     }
  21.     else if (sk[i] > sk[+ 1])
  22.     {
  23.       cout << ">" << sk[+ 1];
  24.     }
  25.     else
  26.     {
  27.       cout << "=" << sk[+ 1];
  28.     }
  29.   }
  30.   return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement