4

C++ sum

view full story
linux-howto

http://www.daniweb.com – Hello, I'm trying to print out on the screen the the sum of a perfect number, and i can't quite figure it out how to code it. For example I now 6 is a perfect number so i need [ 6= 1+2+3 ] to print out on the screen. Any help would be much appreciated (General)