immuntasir

UVA 10055

Feb 11th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. int main() {
  3.     long long int a,b;
  4.     while ((scanf("%lld%lld",&a,&b) != EOF)) {
  5.         if (a > b) {
  6.             printf("%lld\n",a-b);
  7.         }
  8.         else {
  9.             printf("%lld\n",b-a);
  10.         }
  11.     }
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment