Java BigInteger

  • + 0 comments

    Here's the code

    import java.util.*;
    import java.math.*;
    
    public class Solution {
    
        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            
            BigInteger num1 = sc.nextBigInteger();
            BigInteger num2 = sc.nextBigInteger();
            sc.close();
            
            System.out.println(num1.add(num2));
            System.out.println(num1.multiply(num2));
        }
    }