How to handle a big number value like
Math.pow(41,77) gives a large value and I needs to take mod( % ) of that value. So I directly write a stmt as Math.pow(41,77)%119;
The correct result of this equation is 6(I know its the correct ans. *check it by calculator ). But my code returns 88 so what's wrong in my code?
How can I rewrite the same code to get the correct output.