DAY09 (for statement)

while loop

do while loop

for statement

  Learn to use the break and continue

  break

    Out of the entire cycle

  continue

    Out of the current cycle, the next cycle

 99 multiplication table (no digital version)

for(int a=1;a<=9;a++){
    for(int b=1;b<=a;b++){
System.out.print("*");
    }
}

 

 

Guess you like

Origin www.cnblogs.com/fyf79515/p/11415077.html