Street Flower Seller

Street Flower Seller


Abul and Kuddus are two brothers. Both of them are sell flowers in street. Abul sell the flowers in Mohakhali and Kuddus sell in Shahbag. End of the day Abul earn average 1000 tk. Where Kuddus have only 400. So Kuddus is never earn greater than Abul.

Input
The input contains two numbers in every line. These two numbers in each line denotes the amount of earn Abul and Kuddus or vice versa. The input numbers are not greater than 2^32. Input is terminated by ‘End of File’.

Output
For each line of input, print the difference of amount of Abul and Kuddus. Each output should be in separate line.

Sample Input 

100 50
1000 640
100 200

Sample Output 

50
360
100


#include<cstdio>
int main()
{
 unsigned long int a,b;
 while (scanf("%lu %lu",&a, &b)==2)
 {
  if (a>b)
   printf("%lu\n",a-b);
  else
   printf("%lu\n",b-a);
 }
 return 0;
}

 

No comments:

Post a Comment