![]() |
|
#1
|
|||
|
|||
Perfect numbers within a rangeOk, so I have to create this program that asks for a range input and then finds and outputs all the proper numbers within that range and tells how many proper numbers were found (as if the person can't count, haha). Anyways, I wrote a function to do just that and don't understand why it does not work at all! Does anyone have any ideas to how I would go about doing this? Thanks!
|
|||
|
#2
|
|||
|
|||
Re: perfect numbers within a rangeQuote:
When posting code, place a [cpp] tag before the code, & [/cpp] tag afterwards. This will preserve indentation & color code keywords & identifiers. |
|
#3
|
|||
|
|||
Re: perfect numbers within a rangeCPP / C++ / C Code:
|
|
#4
|
|||
|
|||
Re: perfect numbers within a rangeQuote:
How do you expect anyone to debug your code when you don't provide anything that can be compiled? |
|
#5
|
|||
|
|||
Re: Perfect numbers within a rangeif perfectstart is your beginning number and endnumber is your limit.then
CPP / C++ / C Code:
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perfect Numbers | Corrupt Shadow | C++ Forum | 9 | 31-Mar-2008 07:43 |
| recursive function for perfect numbers? | cancan | C Programming Language | 6 | 19-Nov-2007 12:46 |
| Prime or perfect numbers and output factors | buomque | C++ Forum | 4 | 26-Oct-2007 10:23 |
| Need help generating a random number | Allie | C Programming Language | 7 | 09-Nov-2005 23:18 |
| Program that will find the first 4 perfect numbers????? | bicknell83 | C Programming Language | 3 | 30-Mar-2005 02:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The