Skip to content

Commit d63e205

Browse files
authored
Create c1094.java
1 parent 2f9377c commit d63e205

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/codeup100/c1094.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)