![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 1
Rep Power: 0
![]() |
Need help... If / else simple programming...
Let a and b be integers and m be a positive integer. If the remainder of a÷b and b÷m are equal, then it is said that “a is congruent to b modulo m”. For example, if a= 11, b=17, and m=6, then “11 is congruent to 17 modulo 6”, but if a=10, b= 17, and m=6, then “10 is not congruent to 17 modulo 6”. Write a simple program in C++ that reads a, b, and c and determines if a is congruent to b modulo m or not.
Thank you... |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|