I am fairly new to programming, I just had a quick question as to why the fallowing code prints the way it does. Also I am new to this forum and any direction to online resources would be greatly appreciated.
public class print{
public static void main (string[] args){
int i=1;
int j;
while (i<=7){
for(j=1;j<=i;j=j+3)
System.out.print("*");
i=i+2
System.out.println();
}
}
}
the output is :
*
*
**
***