Computer Programming Contest Preparation

ToolBox - Source for: 101/10106/a10106.java



/home/toolbox/public_html/solutions/101/10106/a10106.java
    1 import java.util.Scanner;
    2 import java.math.BigInteger;
    3 
    4 class Main
    5 {
    6     public static void main(String[] args)
    7     {
    8         BigInteger n1;
    9         BigInteger n2;
   10         BigInteger sum;
   11 
   12 
   13         Scanner sc = new Scanner(System.in);
   14         while (sc.hasNext())
   15             {
   16                 n1 = sc.nextBigInteger();
   17                 n2 = sc.nextBigInteger();
   18                 sum = n1.multiply(n2);
   19                 System.out.println(sum);
   20             }
   21     }
   22 }
   23