본문 바로가기

[BOJ] - JAVA

[백준] 2739 : 구구단 JAVA 풀이

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        for(int i=1;i<10;i++){
            System.out.printf("%d * %d = %d\n",N, i, N*i);
        }
    }
}