summaryrefslogtreecommitdiffstats
path: root/šola/p1/vaje/2023-10-19/Modulo.java
diff options
context:
space:
mode:
Diffstat (limited to 'šola/p1/vaje/2023-10-19/Modulo.java')
-rw-r--r--šola/p1/vaje/2023-10-19/Modulo.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/šola/p1/vaje/2023-10-19/Modulo.java b/šola/p1/vaje/2023-10-19/Modulo.java
new file mode 100644
index 0000000..85c92cd
--- /dev/null
+++ b/šola/p1/vaje/2023-10-19/Modulo.java
@@ -0,0 +1,9 @@
+import java.util.*;
+public class Modulo {
+ public static void main (String[] args) {
+ Scanner sc = new Scanner(System.in);
+ String a = sc.nextLine();
+ for (int i = a.length()-1; i >= 0; i--)
+ System.out.println(a.substring(i, i+1));
+ }
+}