![]() |
|
![]() |
|
|
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... |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
hmmmmm
homework me thinks try something first then come back and ask the question. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
Attempt a solution to your homework assignment yourself, prior to asking us to do it for you. How do you expect to learn this way?
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() |
I am going to have to agree with IR and Berto on this one :-)
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#5 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Yep. If you need help starting, let us know, but we're not going to do it for you.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|