Let me explain myself: I have the following loop:
int i=0;
int j=0;
for (; i < 6; i++) {
for (; j < 12 - i; j++) {
**code**
}
}
System.out.println(i * j);
This is not working well. It does print 72, but it does not print well the circle that I draw inside the loops. I'm trying to draw 72 circle, the first line will have 12 circle, the line underneath 11, and so on. When I write the code that is above, it only draw the first line of 12 circles and that's it.
I also tried writing "int i=0" and "int j=0" inside the barracks but it did not work because it shows me an error of "the j variable might not have been initialized":
I just want to to draw 6 lines (i is for the lines - first loop) and 12/11/10/9/8/7/6 circles in each line (j is for that - second loop) and also calculate the i*j outside the loop.
Thanks.