we have to add two numbers such that
input:
2
5 6
7 8
output:
2
11
15
in this case,2 is number of cases and we have to add 5 and 6,7 and 8.
my code is like:
#include<stdio.h>
int main() { int T,A,B,i;
scanf("%d",&T);
for (i=1;i<=T;i++)
{
scanf("%d",&A);
scanf("%d",&B);
printf("%d",A+B);
}
return 0;
}
what is wrong in my code?