Question: Use C++ to write the following program. Be sure to include comments in the code. Congruence (30 points) Implement a function called Congruent which returns
Use C++ to write the following program. Be sure to include comments in the code.

Congruence (30 points) Implement a function called Congruent which returns True if a b(mod m)) meaning a is congruent to b (mod m) else it returns False. The condition for it to be true is when (mod m)=b (mod m) a The funtion takes only 3 input parameters a,b and m. The function should ensure that m is a positive integer. Give two test examples that returns True and two that returns False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
