GuGuDanWhile-구구단 - 중첩 while문

CODEDRAGON Development/Java

반응형

구구단 - 중첩 while문으로

   

   

소스코드

   

public class GuGuDanWhile {

 

public static void main(String[] args) {

 

int i=2, j;

while(i<10)

{

j=1;

while(j<10)

{

System.out.println(i + " x " + j + " = " + i*j);

j++;

}

i++;

}

}

}

https://github.com/10zeroone/study_Java/blob/master/ch04-operation/LAB/GuGuDanWhile.java

 

   

출력결과

반응형