NEED HELP WITH A HOMEWORK PLEASE

Complete numbers: Are numbers such as 6 that equals 3 + 2 + 1 (the sum of numbers it divide to).

Ok I should write a program that request a number from the user and then tells him if the number is a complete number or no, I should be using "FOR" function and ofcourse the "IF".

Thanks for help
zeid