본문으로 바로가기

[기초 반복문] 구구단 예제

category JAVA 2019. 1. 13. 23:05
반응형
public class ex1 {

	public static void main(String[] args) {
		
		int i, j; //변수 생성
		
		for(i = 2 ; i<9; i++) {    
			for(j = 1; j <= 9; j++) {
				
			System.out.println(i + "x" + j + "=" + i*j);
			}
		}

	}

}



반응형