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

Comments

Popular posts from this blog

371 - Ackermann Functions

Create many folder with one click