fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int a, b;
  5. cin >> a >> b;
  6. if (a > b){
  7. cout << a - b << endl;
  8. }
  9. else if (a < b){
  10. cout << b - a << endl;
  11. }
  12. else{
  13. cout << 0 << endl;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
1257778157