I want to add an additional space to the beginning of each new line. the current output is:
$****
$***
$**
$*
$
Press any key to continue . . .
What I want is:
$****
$***
$**
$*
$
Press any key to continue . . .
I added the for-loop! it looks almost perfect except the "press any key to continue..." message is tabbed. How can this be fixed?
Code:
for(r=1; r<=5; r++) {
printf("$");
for(c=1; c<=5;c++) {
if(6-r<=c) {
printf(" ");
} else {
printf("*");
}
}
printf("\n");
n++;
for (f=0;n>f;f++)
{
printf(" ");
}
}