Advertisement
erzis

Untitled

Oct 18th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int a,b;
  4. int main()
  5. {
  6. cin >> a >> b;
  7. if (a >= b)
  8. {
  9. cout << b-a;
  10. }
  11. if (b >= a)
  12. {
  13. cout << a-b << endl;
  14. }
  15. system("pause");
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement