Quote:
Originally Posted by adenus
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.