Hi there ppl. This might be very basic to ask but i have only just started college and i have been given homework in my programming class.
I have been asked to make a program which completes basic mathematical functions. One of my tasks is to make a code that can answer - ('A' mod 'B').
I know what the questions means and i would possibly know how to code it, but i do not know the formula for ('A' mod 'B')
One of my questions is to write 'A' to the power 6 so i wrote - (num1^6) and it works fine.
By the way, 'A' is the number 12 and 'B' is the number 5. so obviously the answer is 2 but i need a formula for it.
Any help would be greatly Appreciated
Thank You![]()
![]()


Reply With Quote


