You are viewing a single comment's thread. Return to all comments →
Here's using BufferedReader
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String num1 = br.readLine().trim(); String num2 = br.readLine().trim(); br.close(); BigInteger n1 = new BigInteger(num1); BigInteger n2 = new BigInteger(num2); System.out.println(n1.add(n2)); System.out.println(n1.multiply(n2));
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 →
Here's using BufferedReader