View Single Post
Old Mar 19th, 2008, 7:41 PM   #7
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,261
Rep Power: 5 grumpy will become famous soon enough
Re: Why my program dont cout perfect number?

Quote:
Originally Posted by adenus View Post
if i have like that is it right, or what i have to correct, because this advice to move cout into loop, dont help.?
The advice helps as much as it is possible, given the way you asked your question.

The basic problem in your code is that you have code outside loops that need to be inside the loops, and other things inside loops that need to be outside. Hence the code runs incorrectly. That is enough information for you to fix your problem, if you just think about it a bit.
grumpy is offline   Reply With Quote