![]() |
|
#1
|
|||
|
|||
Amicable numbers programHi!
I need a litlle help with this program. The input is a natural number and the output is all the amicalbe numbers that are smaller than this number. Here is the code I wrote. It doesn't give me any output. Appriciate your help. Thanks, Noam. CPP / C++ / C Code:
Last edited by JdS : 06-Dec-2004 at 16:44.
Reason: Please insert [c] & [/c] tags between your example C codes
|
|
#2
|
|||
|
|||
|
Quote:
There are a couple of things wrong with your post: First: use code tags. Don't know what code tags are? Read the sticky at the top of this page. Click where it says Sticky:GIDForums enables ... Second: Format your code to make it readable and to emphasize where your control structures are (use indentation) Third: Tell what you get when you run your program. Tell what input you used and what output you expected and what you got. One thing wrong with your program: You read a value for n, but then you use v in your loop. CPP / C++ / C Code:
Regards, Dave |
Recent GIDBlog
Toyota - 2008 November Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fltk-2.0 cvs | Plumb | FLTK Forum | 20 | 13-Nov-2004 08:10 |
| Anyone can write a program code for this??? | chriskan76 | C Programming Language | 1 | 19-Oct-2004 21:25 |
| Need help with my programs, please help. | agentxx04 | C Programming Language | 1 | 23-Sep-2004 19:02 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
| Need help with a C program (Long) | McFury | C Programming Language | 3 | 29-Apr-2004 21:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The