- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHackerrankJava0013.java
More file actions
Latest commit
21 lines (14 loc) · 524 Bytes
/
Copy pathHackerrankJava0013.java
File metadata and controls
21 lines (14 loc) · 524 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
importjava.math.BigInteger;
importjava.util.Scanner;
publicclassHackerrankJava0013 {
publicstaticvoidmain(String[] args) {
// Java BigInteger
// https://www.hackerrank.com/challenges/java-biginteger/problem?isFullScreen=true
Scannerscanner = newScanner(System.in);
BigIntegerfirstValue = scanner.nextBigInteger();
BigIntegersecondValue = scanner.nextBigInteger();
scanner.close();
System.out.println(firstValue.add(secondValue));
System.out.println(firstValue.multiply(secondValue));
}
}