[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/subham500071430/JavaProgramming/patch-2/HackerRank/SixtyTwo.java [Back]  [Original]

package HackerRank;

import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class SixtyTwo {

    public static void main(String[] args) {
        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
        Scanner sc = new Scanner(System.in);
        
        // Read two big integers
        BigInteger a = new BigInteger(sc.next());
        BigInteger b = new BigInteger(sc.next());
        
        // Print their sum
        System.out.println(a.add(b));
        
        // Print their product
        System.out.println(a.multiply(b));
        
        sc.close();
  
    }
}


Web Proxy Viewer  |  New URL  |  Original Page