By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,116 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,116 IT Pros & Developers. It's quick & easy.

who can write a C-program on perfect numbers from 1 to 1000?

P: 1
who can write a C-program on perfect numbers from 1 to 1000?
Mar 24 '07 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,916
To answer your question I can. In fact I already did last year sometime.

However I think what you are asking is who will write a program for you and the answer to that is no-one on this site.

I do not know if this is homework, although I suspect so as the applications of perfect numbers are not terribly great.

Do you know the definition of a perfect number? Do you know how you would test a number to see if it was perfect can you do it on paper?

Once you have a method on paper then try to turn it into a C function.

Once you have a function then build a program round it that tests all numbers in the range 1 - 1000.
Mar 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.