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
int main()
{
long input1,input2,start,end,
while(scanf("%ld%ld",&input1,&
{
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
Comments
Post a Comment