0

{ for (int i = 0; i < n; i++) {

for (int j = 0; j < n; j++)
{
printf("%d\n", j);
}

for (int k = n; k < n + 2; k++)
{
printf("#");
}
printf(" \n");

return (0); }

1
  • I suggest you get a paper and pen, calculate the number of spaces and # required for each horizontal line, and try to bring out a formula that will connect each such horizontal lines. – ABor May 14 '16 at 4:17
0

In order for them to add or subtract they would have to be modified by I on each iteration.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .