I have read and re-read through the help provided for mario here and other places, but am stuck at getting the right number of lines, but not the right characters in each line (i am substituting a for spaces to be able to view clearly). I am very right brained, so need help using non-technical language. Any guidance would be appreciated. Code to date below. Thanks.
int main(void) { //ask user how many blocks to make mario jump
int n;
do
{
printf("How many blocks would you like Mario to jump?\n");
n = GetInt();
printf("Height: %i\n", n);
}
while (n < 1 || n > 23);
//create pyramid
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
printf("a");
}
for (int k = n; k < n + 2; k++)
{
printf("#");
}
printf("\n");
}
}