RGAlex

O5. Multiply Big Number / Text Processing - Exercise

Mar 12th, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. package TextPlocessing.Exercise;
  2.  
  3. import java.math.BigInteger;
  4. import java.util.Scanner;
  5.  
  6. public class O5MultiplyBigNumber {
  7.     public static void main(String[] args) {
  8.         Scanner scanner = new Scanner(System.in);
  9.         BigInteger a = new BigInteger(scanner.nextLine());
  10.         BigInteger b = new BigInteger(scanner.nextLine());
  11.         System.out.println(a.multiply(b));
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment