how to handle large numbers while calculating modular exponential…
Modular exponential
Hi @suhailrashidsalma
In the question you have to use the property of modular exponential that is
(a*b)%c = ( (a%c) * (b%c) )%c
So this is how you will not get a large number. And also instead of taking int as data type use long int. Then all the values will be in range of long int only.