Solution to the problem number 532 of AceptaelReto - 532.

Any questions do not hesitate to contact.


#include <bits/stdc++.h>
using namespace std;

int main(){
    int n; scanf("%d",&n);
    while(n--){
        int a,b; scanf("%d %d",&a,&b);
        printf("%d\n",abs(a-b));
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!