-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBigNumbers.java
More file actions
19 lines (15 loc) · 562 Bytes
/
BigNumbers.java
File metadata and controls
19 lines (15 loc) · 562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class BigNumbers {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner sc = new Scanner(System.in);
BigInteger a = sc.nextBigInteger();
BigInteger b = sc.nextBigInteger();
System.out.println(a.add(b));
System.out.println(a.multiply(b));
}
}