Sunday, August 28, 2016

uri- 1198 - Hashmat the Brave Warrior

#include<stdio.h>

int main()
{
   long long int a,b;

    while(scanf("%lld %lld",&a,&b)==2){
            if(a>b){
       printf("%lld\n",a-b);
           }
            else{
        printf("%lld\n",b-a);
            }
    }
    return 0;
}

No comments: