Problem # 29 : Big-Mult
If you attempt to multiply two large numbers with any calculator etc., you won't get an answer accurate upto the last digit. Your objective is to overcome this problem in calculators.
Write a function BIGMULT$(A$,B$), which is passed two numbers in the form of the strings A$ and B$ and returns their product in the form of a string.
Sample Output
| BIGMULT(19 ,3) | 57 | |
| BIGMULT(89999123823471,0) | 0 | |
| BIGMULT(1111111111,1111111111) | 1234567900987654321 | |
| BIGMULT(12344321,43211234) | 533413343302114 | |
| BIGMULT(78987234987,238479887423) | 18836866907553806868501 | |
| BIGMULT(965626593646731456,376822969677254657) | 363870280617292991865908355404390592 | |
| BIGMULT(10901,90109) | 982278209 | |
| BIGMULT(99899899899899,10000000000000) | 998998998998990000000000000 |
![]() |