Check and help whats wrong in this simple code

#include<stdio.h>
int main()
{
int t,n1,n2,i,sum=0;
scanf("%d",&t);
for(i=0;i<t;i++)
{
sum=0;
scanf("%d",&n1);
scanf("%d",&n2);
sum=n1+n2;
printf(“Sum =%d”,sum);
}
return 0;

}

Looks like you’re asking for two numbers and printing their sum. Correct me if I’m wrong, I ran your code it works fine. What’s the problem you having please provide some more information

I think there is some syntax error. Like you have missed a semicolon or something.

There can two options where it can be wrong!
1)U forgot to include “#” before include<stdio.h>.

2)I think u need to output on new line for each test case.

Hope it helps :slight_smile:

your code looks perfect whats the problem that u are facing?