Thursday, July 9, 2009

Perfect number generation with coding in c?

Here's the bull force method. Write a function: bool isPerfectNum(int num) which go through all numbers from 1 to num-1, if meeting the perfect number condition, return true, if not , false.


No comments:

Post a Comment