알고리즘/알고리즘 기초문제(백준-입출력)
[백준]2742_기찍 N
모두의 향연
2022. 2. 15. 01:24
728x90
반응형
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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 = N; i > 0; i--) { System.out.println(i); } } } | cs |
728x90
반응형