Solution to the problem number 10055 of UVA - 10055.

Any questions do not hesitate to contact.

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

int main()
{
    long long int A,B;
    while(scanf("%lld%lld",&A,&B)!=EOF)
    {
        if(A > B) cout<< A - B<<endl;
        else cout<<B - A<<endl;
    }
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!