From 7796c33a3c3f26aa5c979173118948546ee126e3 Mon Sep 17 00:00:00 2001 From: Shweta <65334243+shweta-laha@users.noreply.github.com> Date: Thu, 20 Oct 2022 12:32:01 +0530 Subject: [PATCH 1/2] BigInteger Hackerrank Solution --- Java/BigInteger.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Java/BigInteger.java diff --git a/Java/BigInteger.java b/Java/BigInteger.java new file mode 100644 index 0000000..c9c61be --- /dev/null +++ b/Java/BigInteger.java @@ -0,0 +1,20 @@ +import java.io.*; +import java.util.*; +import java.math.*; + +public class Solution { + + public static void main(String[] args) { + Scanner input=new Scanner(System.in); + + BigInteger a=new BigInteger(input.next()); + BigInteger b=new BigInteger(input.next()); + + BigInteger c,d; + c=a.add(b); + d=a.multiply(b); + System.out.println(c); + System.out.println(d); + + } +} From e1b0d23744745a6da83635477d250ad5eb09b02c Mon Sep 17 00:00:00 2001 From: Shweta <65334243+shweta-laha@users.noreply.github.com> Date: Thu, 20 Oct 2022 12:34:40 +0530 Subject: [PATCH 2/2] Update BigInteger.java --- Java/BigInteger.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Java/BigInteger.java b/Java/BigInteger.java index c9c61be..71d940f 100644 --- a/Java/BigInteger.java +++ b/Java/BigInteger.java @@ -1,3 +1,7 @@ +//Name: Shweta Laha +//Date: 20-10-2022 + + import java.io.*; import java.util.*; import java.math.*;