You are viewing a single comment's thread. Return to all comments →
Scanner sc=new Scanner(System.in); BigInteger b1=sc.nextBigInteger(); BigInteger b2=sc.nextBigInteger(); BigInteger sum=b1.add(b2); BigInteger mul=b1.multiply(b2); System.out.println(sum); System.out.println(mul);
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java BigInteger
You are viewing a single comment's thread. Return to all comments →
Scanner sc=new Scanner(System.in); BigInteger b1=sc.nextBigInteger(); BigInteger b2=sc.nextBigInteger(); BigInteger sum=b1.add(b2); BigInteger mul=b1.multiply(b2); System.out.println(sum); System.out.println(mul);
}