My code isn’t working for all the test cases. May I know where am i wrong?
Math day problem
While doing exponent, you need to perform modulation simultaneously. This is known as modular exponentiation. corrected Code : https://ide.codingblocks.com/s/207727
Hope it Helps.
thank you!!! Got my mistake