본문 바로가기
PS/Baekjoon

[Baekjoon] 2741 - N 찍기

by 서현 SEOHYEON 2022. 11. 21.

📝 문제

 

 

🔓 답안

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(br.readLine());

        for(int i = 1; i <= N; i++){
            System.out.println(i);
        }
    }

}

'PS > Baekjoon' 카테고리의 다른 글

[Baekjoon] 10952 - A+B - 5  (0) 2022.11.23
[Baekjoon] 10872 - 팩토리얼  (0) 2022.11.22
[Baekjoon] 2420 - 사파리월드  (0) 2022.11.20
[Baekjoon] 1001 - A-B  (0) 2022.11.19
[Baekjoon] 2753 - 윤년  (0) 2022.11.18

댓글