package test;
public class main {
public static void main(String[] args) {
//이중for문으로 2단부터 9단까지 만들기
for(int i = 2; i <=9; i++) { //외부for문에 int i 로 앞에 i단만들기
for(int j = 1; j <=9; j++) {//내부 for문에 int j로 뒤 j단만들기
System.out.println(i + "x" + j + "=" + (i*j) );
//출력을 할 때 문장을 쓸 때는 ""꼭 쓰고 변수앞 뒤에 문장을 붙일 때는 +꼭 붙이기
}
}
}
}
출력내용 : 2단~9단