I want to use printf and for loop to print a character multiple times per line depending on the input; i.e. if the input is 3 i want to print:
a
aa
aaa
this is the loop, which doesn't work at all.
for (int i = 0; i < n; i++)
{
printf("a", i);
printf("\n");
}
I just don't understand how to print it multiple times on a single line.