Skip to content

Instantly share code, notes, and snippets.

@diofeher
Created April 18, 2010 03:08
Show Gist options
  • Save diofeher/369973 to your computer and use it in GitHub Desktop.
Save diofeher/369973 to your computer and use it in GitHub Desktop.
#include<stdio.h>
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment