View Single Post
Old Mar 19th, 2008, 4:06 PM   #3
peaceofpi
hi: for(;;) goto hi;
 
peaceofpi's Avatar
 
Join Date: Jun 2006
Posts: 91
Rep Power: 3 peaceofpi is on a distinguished road
Send a message via AIM to peaceofpi Send a message via MSN to peaceofpi
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.
peaceofpi is offline   Reply With Quote