Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package objectAndClasses;
- import java.math.BigInteger;
- import java.util.Scanner;
- public class P02SumBigNumbers {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- BigInteger firstNum = new BigInteger(scanner.nextLine());
- BigInteger secondNum = new BigInteger(scanner.nextLine());
- //100 + 4
- BigInteger result = firstNum.add(secondNum);
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement