This generates the figure:Code:#include <stdio.h> void main() { int a,b; for(a=0;a<6;++a){ for(b=0;b<=a;++b) putchar('*'); putchar('\n'); } }
*
**
***
****
*****
******
Could someone dissect each for statement and the entire loop as well?
What I don't get is how it knows to print just 1 * first, then 2 ...
Sorry for being such a newbie ... and thanks.