Loop problem with C language

Hey there, I typed a code in C language and I have setup everything to support the C language. It was the loop code to make the pyramid like this
1
11
111

So when I run the code it came out to be like this
1
12
123

And also to check there were no errors in the syntax + I checked in online compilers there it worked perfectly.
In case this is the code
#include <stdio.h>
int main()
{
int i=0, j=0, r ;
printf(“Enter the number of rows: “);
scanf(”%d”, &r );
for(i=1; i<=r; ++i)
{
for(j=1; j<=i; ++j)
{
printf(“1”);
}

printf("\n");

}
return 0;
}
Please help me with this error. :worried: