WHAT IS THE OUTPUT IF TEST CASES IS
3
and if the cases are:
1 2
100 200
10 40
also justify the 6th line of code used here.
#include stdio.h 
int main()
{
int T;
scanf("%d", &T);
while (T--)
{
int a, b;
scanf("%d %d", &a, &b);
int ans = a + b;
printf("%d\n", ans);
}
return 0;
}


Posted on by