• Source
    1. /*
    2. ********************************************
    3. This code only for beginners. Please, Don't Copy Past
    4. ********************************************
    5. */
    6.  
    7. #include<stdio.h>
    8. #include<math.h>
    9. #include<string.h>
    10. #include<stdlib.h>
    11.  
    12. int main()
    13. {
    14. int j=0,k=0;
    15. while(scanf("%d%d",&j, &k) !=EOF ){
    16. j= j-k;
    17. if( j>=0)
    18. printf("%d\n",j);
    19. else
    20. printf("%d\n",j * (-1) );
    21. }
    22.  
    23. return 0;
    24. }