From f7249fd9c58cb60202fd8a1a5aeb78a9d47df5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 14 Oct 2023 16:11:26 +0200 Subject: =?UTF-8?q?=C5=A1ola?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\305\241ola/p1/dn/DN00_63230317.java" | 10 ++++++++++ "\305\241ola/p1/vaje/2023-10-12/Vsota1.java" | 7 +++++++ "\305\241ola/p1/vaje/2023-10-12/Vsota2.java" | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 "\305\241ola/p1/dn/DN00_63230317.java" create mode 100644 "\305\241ola/p1/vaje/2023-10-12/Vsota1.java" create mode 100644 "\305\241ola/p1/vaje/2023-10-12/Vsota2.java" (limited to 'šola/p1') diff --git "a/\305\241ola/p1/dn/DN00_63230317.java" "b/\305\241ola/p1/dn/DN00_63230317.java" new file mode 100644 index 0000000..763b46b --- /dev/null +++ "b/\305\241ola/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/\305\241ola/p1/vaje/2023-10-12/Vsota1.java" "b/\305\241ola/p1/vaje/2023-10-12/Vsota1.java" new file mode 100644 index 0000000..b033c15 --- /dev/null +++ "b/\305\241ola/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/\305\241ola/p1/vaje/2023-10-12/Vsota2.java" "b/\305\241ola/p1/vaje/2023-10-12/Vsota2.java" new file mode 100644 index 0000000..7857cbc --- /dev/null +++ "b/\305\241ola/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)); + } +} -- cgit v1.2.3