본문 바로가기
웹프로그래밍/JAVA

구구단

by 폴더맨 2024. 6. 10.
package exam8;

public class GuGuDan2 {
	  public static void main(String[] args) {
		    for (int i = 2; i <= 9; i++) {
		      for (int j = 1; j <= 9; j++) {
		        System.out.print(i + " * " + j + " = " + String.format("%2d", i * j));
		        System.out.print("    ");
		      }
		      System.out.println();
		    }
		  }
		}

'웹프로그래밍 > JAVA' 카테고리의 다른 글

자바 디컴파일 class 파일을 java 소스 코드로 변환  (1) 2024.06.15
성적처리2  (1) 2024.06.10
성적처리  (0) 2024.06.10
학생정보  (0) 2024.06.10