From d9c6360e6bfbfb1beae6017e5cf9b01618c25922 Mon Sep 17 00:00:00 2001 From: amomotov35-cmd Date: Sat, 27 Dec 2025 13:09:01 +0300 Subject: [PATCH 1/2] feat: add logic to find max of four numbers --- first-project/Main.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 first-project/Main.java diff --git a/first-project/Main.java b/first-project/Main.java new file mode 100644 index 0000000..f96a107 --- /dev/null +++ b/first-project/Main.java @@ -0,0 +1,15 @@ +public class Main { + public static void main(String[] args) { + int num1 = 15; + int num2 = 8; + int num3 = 23; + int num4 = 17; + + int max = num1; + if (num2 > max) max = num2; + if (num3 > max) max = num3; + if (num4 > max) max = num4; + + System.out.println("Максимум из четырех чисел: " + max); + } +} \ No newline at end of file From 79540d2d06bd6d0b3a1a950d4b400101160c1176 Mon Sep 17 00:00:00 2001 From: amomotov35-cmd Date: Sat, 27 Dec 2025 13:09:49 +0300 Subject: [PATCH 2/2] feat: add logic to find max of four numbers --- .idea/.gitignore | 10 ++++++++++ .idea/java-first-project.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ 5 files changed, 39 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/java-first-project.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/java-first-project.iml b/.idea/java-first-project.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/java-first-project.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..4b151ab --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0314a68 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file