Java BigInteger

  • + 0 comments

    Consider this solution as reference,

        public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            BigInteger first = new BigInteger(sc.next());
            BigInteger second = new BigInteger(sc.next());
            System.out.println(first.add(second));
            System.out.println(first.multiply(second));
       }