Skip to content

UKSPC Practice Problems » N Digit Integer Multiplication

Write a program that will multiply 2 N-digit positive integers where N may be arbitrarily large (1 < N < 60). Your program should output the product(s).

If the product is longer than 70 digits, the output should be broken into two lines with at most 70 digits per line.

Input Specification

One N-digit positive integer per line in input and output files.

Sample Input

65656432310964579864321356898765432243578987876654
94454

Sample Output

6201512657499848426504609444515990137135009720901476916