Advertisement
kadeyrov

Untitled

Sep 10th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <algorithm>
  4. #include <vector>
  5. #include <string>
  6. #include <set>
  7.  
  8. using namespace std;
  9.  
  10. int main () {
  11.     int a, b;
  12.     cin >> a >> b;
  13.    
  14.     bool flag = true;
  15.    
  16.     cout << abs(a - b) / 10 + ((a - b) % 10 != 0 ? 1 : 0) << endl;
  17.    
  18.     cout << (a > b ? ">" : "<");
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement