10055 - Hashmat the Brave Warriorfrom UVa in C language

Written by: Hasan Ahmed
From: Sylhet, Bangladesh
Problem details:
Code in C:
#include <stdio.h>
int main()
{
long int i=0, a, b, c;
while(scanf("%ld%ld", &a, &b) != EOF){
c= b-a;
if(c<0) c=-c;
printf("%ld\n", c);
}
return 0;
}
No comments :
Post a Comment