Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 21st, 2005, 1:20 AM   #1
showmaak
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 showmaak is on a distinguished road
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...
showmaak is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:17 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC