I have been working on this program for five hours trying to get the star pattern to print flush right can anyone help??? This is what my program looks like.
for( space = 9; space >= 0; space-- )
printf( " " );
{
for( numline = 1; numline <= 10; numline++ )
{
for( numstar = 1; numstar <= numline; numstar++ )
{
printf( "*" );
}
}
}
The program will only print spaces for the first line of the pattern.
Any help would be appreciated.
The patterns I am trying to print are attached. Thank you!