product of two large numbers

How to get product of two large numbers?

1 Like

@while_1

It can be done easily in python by multiplying two numbers
a,b=map(int,input().split())
print(a*b)

you can refer link
https://awsmcode.wordpress.com/2015/10/07/multiplying-large-numbers-in-cc/

You need to use languages which has data-type that supports big integers. Since Python3 doesn’t actually have any upper limit for integer. That would be the best language .

Further, Java has bigInteger class using which also you can perform arithmetics involving large value.

There are many ways to perform such a large multiplication. One of the known method is Karatsuba algorithm. You can refer these two links which will clearly explained your whole concept.

There is one question that will clear your all doubt is Just_multiply

//