We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff7733f commit 4a0e535Copy full SHA for 4a0e535
Codechef/StartersSept2021/A.java
@@ -0,0 +1,37 @@
1
+package StartersSept2021;
2
+
3
+import java.util.Scanner;
4
5
+public class A {
6
7
+ public static void main(String[] args) {
8
9
+ Scanner sc = new Scanner(System.in);
10
11
+ int t = sc.nextInt();
12
13
+ for (int tt = 0; tt < t; tt++) {
14
15
+ int xsec = sc.nextInt();
16
17
+ int position = xsec % 4;
18
19
+ switch (position) {
20
+ case 0:
21
+ System.out.println("North");
22
+ break;
23
+ case 1:
24
+ System.out.println("East");
25
26
+ case 2:
27
+ System.out.println("South");
28
29
+ case 3:
30
+ System.out.println("West");
31
32
+ }
33
34
+ sc.close();
35
36
37
+}
0 commit comments