Advertisement
Lyubohd

02. Sum Big Numbers

Jun 23rd, 2021
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import java.math.BigInteger;
  2. import java.util.Scanner;
  3.  
  4. public class Main {
  5.     public static void main(String[] args) {
  6.         Scanner scan = new Scanner(System.in);
  7.         BigInteger firstNumber = new BigInteger(scan.nextLine());
  8.         BigInteger secondNumber = new BigInteger(scan.nextLine());
  9.  
  10.         BigInteger sum = firstNumber.add(secondNumber);
  11.         System.out.println(sum);
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement