We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f9377c commit d63e205Copy full SHA for d63e205
1 file changed
src/codeup100/c1094.java
@@ -0,0 +1,24 @@
1
+package codeup100;
2
+
3
+import java.util.Scanner;
4
5
+public class c1094 {
6
7
+ public static void main(String[] args) {
8
+ Scanner sc = new Scanner(System.in);
9
+ int k = sc.nextInt(); //출석 번호를 부른 횟수
10
11
12
+ int[] students = new int[k];
13
+ for (int i = 0; i<k; i++) {
14
+ students[i] = sc.nextInt(); //무작위로 부른 n개의 번호(1 ~ 23)
15
+ }
16
+ sc.close();
17
18
+ //출력
19
+ for (int i = students.length-1; i >= 0; i--) {
20
+ System.out.printf("%d ", students[i]);
21
22
23
24
+}
0 commit comments