Advertisement
deyanmalinov

02. Sum Big Numbers

Mar 8th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. package DPM;
  2. import java.math.BigInteger;
  3. import java.util.*;
  4. import java.util.stream.Collectors;
  5. public class Main {
  6.     public static void main(String[] args) {
  7.         Scanner scan = new Scanner(System.in);
  8.         BigInteger fnum = scan.nextBigInteger();
  9.         BigInteger snum = scan.nextBigInteger();
  10.  
  11.         System.out.println(fnum.add(snum));
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement