[백준/Java] 2739 : 구구단

SEOP·2024년 6월 11일
0
post-thumbnail

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new BufferedReader(new InputStreamReader(System.in)));
        BufferedWriter bw = new BufferedWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

        int input = Integer.parseInt( br.readLine() );

        for (int i = 1 ; i < 10 ; i++ )
        {
            bw.write(input + " * " + i + " = " + input * i  );
            bw.newLine();
        }

        bw.flush();
        bw.close();
    }
}
profile
응애 나 애기 개발자

0개의 댓글