Lyubohd

02. Sum Big Numbers

Jun 23rd, 2021
585
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data