Advertisement
chete

bigInteger

Mar 26th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class SumaBigInteger {
  4.  
  5.     /**
  6.      * @param args
  7.      */
  8.     public static void main(String[] args) {
  9.         // TODO Auto-generated method stub
  10.         Scanner lee=new java.util.Scanner(System.in);
  11.        
  12.         String N1 = lee.next();
  13.         String N2 = lee.next();
  14.        
  15.         java.math.BigInteger bi1 = new java.math.BigInteger(N1);
  16.         java.math.BigInteger bi2 = new java.math.BigInteger(N2);
  17.  
  18.         System.out.println(bi1.add(bi2));
  19.  
  20.  
  21.     }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement