Page 1 of 1

Problem 11172

Posted: Wed Mar 16, 2016 11:07 am
by anandoham
https://uva.onlinejudge.org/external/111/11172.pdf

Can somebody explain why this is not working? It gives WA

#include <stdio.h>

int main()
{
long int a[20], b[20], i, l;

scanf("%d", &l);

if(l<15)
{
for(i=0; i<l; i++)
scanf("%d %d", &a, &b);

if(a > b)
printf(">\n");

if(a < b)
printf("<\n");

if(a == b)
printf("=\n");
}

return 0;

}