|
Re: Why my program dont cout perfect number?
Quote:
for (int i = 1; i < lim; i++) {
rez=Perfectnumber(lim);
}
cout<<"perfect numbers from 1 to"<<lim<<" : "<<rez<<endl;
|
Rethink the logic here.
__________________
How do you play Religious Roulette?
Stand around in a circle and blaspheme till someone gets struck by lightning.
|