구구단
- 2단
int x;
x=2;
or(int i=1; i<10; i=i+1) {
System.out.println(x+""+i+"="+xi);
- 2단 ~ 9단
int x;
int i;
for(x=2; x<10; x=x+1) {
for(i=1; i<10; i=i+1) {
System.out.println(x +""+i+"="+ xi+" ");
- 2단 거꾸로
int x;
x=2;
for(int i=9; i>0; i=i-1) {
System.out.println(x+""+i+"="+xi);