From 75a1e193bc7f52b9e31378352d44de2558ee76c7 Mon Sep 17 00:00:00 2001 From: AASRITH24 <2000030835@kluniversity.in> Date: Fri, 3 Feb 2023 15:07:22 +0530 Subject: [PATCH 1/2] Addition of two numbers --- add.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 add.java diff --git a/add.java b/add.java new file mode 100644 index 0000000..c01305d --- /dev/null +++ b/add.java @@ -0,0 +1,9 @@ + public class SumOfNumbers1 + { + public static void main(String args[]) + { + int n1 = 225, n2 = 115, sum; + sum = n1 + n2; + System.out.println("The sum of numbers is: "+sum); + } + } \ No newline at end of file From 7787424ed38c37e34de3b7953e8b6c4141999851 Mon Sep 17 00:00:00 2001 From: AASRITH24 <90607896+AASRITH24@users.noreply.github.com> Date: Fri, 3 Feb 2023 15:11:23 +0530 Subject: [PATCH 2/2] Update add.java --- add.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add.java b/add.java index c01305d..3227eeb 100644 --- a/add.java +++ b/add.java @@ -1,4 +1,4 @@ - public class SumOfNumbers1 + public class add { public static void main(String args[]) { @@ -6,4 +6,4 @@ public static void main(String args[]) sum = n1 + n2; System.out.println("The sum of numbers is: "+sum); } - } \ No newline at end of file + }