- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolution.java
More file actions
Latest commit
22 lines (17 loc) · 503 Bytes
/
Copy pathsolution.java
File metadata and controls
22 lines (17 loc) · 503 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// https://github.com/Utkarsh299-tech
importjava.util.*;
publicclassSolution {
publicstaticvoidmain(String[] args) {
Scannerscan = newScanner(System.in);
intn = scan.nextInt();
int[] a = newint[n];
for(inti = 0; i < n; i++) {
a[i] = scan.nextInt();
}
scan.close();
// Prints each sequential element in array a
for (inti = 0; i < a.length; i++) {
System.out.println(a[i]);
}
}
}