summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rw-r--r--šola/p1/dn/DN00_63230317.java10
-rw-r--r--šola/p1/vaje/2023-10-12/Vsota1.java7
-rw-r--r--šola/p1/vaje/2023-10-12/Vsota2.java9
4 files changed, 27 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 23baf12..039a515 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ composer.lock
package-lock.json
vendor/
node_modules/
+*.class
diff --git a/šola/p1/dn/DN00_63230317.java b/šola/p1/dn/DN00_63230317.java
new file mode 100644
index 0000000..763b46b
--- /dev/null
+++ b/šola/p1/dn/DN00_63230317.java
@@ -0,0 +1,10 @@
+import java.util.*;
+public class DN00_63230317 {
+ public static void main (String[] args) {
+ Scanner sc = new Scanner(System.in);
+ int b = sc.nextInt();
+ int p = sc.nextInt();
+ System.out.println(b/p);
+ System.out.println(b%p);
+ }
+}
diff --git a/šola/p1/vaje/2023-10-12/Vsota1.java b/šola/p1/vaje/2023-10-12/Vsota1.java
new file mode 100644
index 0000000..b033c15
--- /dev/null
+++ b/šola/p1/vaje/2023-10-12/Vsota1.java
@@ -0,0 +1,7 @@
+import java.util.*;
+public class Vsota1 {
+ public static void main (String[] args) {
+ Scanner sc = new Scanner(System.in);
+ System.out.println(sc.nextInt() + sc.nextInt());
+ }
+}
diff --git a/šola/p1/vaje/2023-10-12/Vsota2.java b/šola/p1/vaje/2023-10-12/Vsota2.java
new file mode 100644
index 0000000..7857cbc
--- /dev/null
+++ b/šola/p1/vaje/2023-10-12/Vsota2.java
@@ -0,0 +1,9 @@
+import java.util.*;
+public class Vsota2 {
+ public static void main (String[] args) {
+ Scanner sc = new Scanner(System.in);
+ int a = sc.nextInt();
+ int b = sc.nextInt();
+ System.out.println(a + " + " + b + " = " + (a+b));
+ }
+}