add two numbers(why is it showing wrong answer?)

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?

Print output of each testcase on new line.
You need to change the printf to printf("%d\n",A+B).