info@sislbd.com +8801775 012 358

UVA Online Judge – 10055 – Hashmat the Brave Warrior

#include <stdio.h>
int main()
{
long input1,input2,start,end,output;
while(scanf(“%ld%ld”,&input1,&input2)==2)
{
if(input1 >= input2)
{
start=input2;
end=input1;
}
else
{
start=input1;
end=input2;
}
output=end-start;
printf(“%ld\n”,output);
} // End of while
} // End of main

spectrum