Home > Back-end >  Using C language design loop output as follows
Using C language design loop output as follows

Time:09-23

* * * * *
* * * * *
* * * * *
* * * * *

CodePudding user response:

This is outputting, you judge? Just starting position, the end is a list of + 1 used for and if the nested

CodePudding user response:

In the loop:
1. The number of output space (each row + 2)
2. Output graphics

CodePudding user response:

Are there any specific code

CodePudding user response:

It is ok that nested loop
 for (n=0; N<5; N++) 
{
for(i=0; i<=n; I++)
{
Printf (" ");
}
Printf (" * * * * * \ n ");
}
  • Related