Switch to full style
For C/C++ coders discussions and solutions
Post a reply

solution of question

Fri Apr 29, 2011 3:34 pm

write a program that print all the perfect numbers from 1-9000.



Re: solution of question

Fri Apr 29, 2011 11:02 pm

For even numbers 2power(n)−1(2power(n)−1),
for n = 2: 2power(1)(2power(2)−1) =2*(4-1)= 6
in a for loop ,

Post a reply
  Related Posts  to : solution of question
 A Question     -  
 Well I am a newby with a question...     -  
 welcome for any question regarding SCJP 5     -  
 skymilesBlue - newbie question     -  
 Portlet container question     -  
 Question I hope to be answered     -  
 Solution Architect- Wireless     -  
 Poseidon Infosoft: One Stop Solution for all your IT needs.     -  
 Poseidon Infosoft: One Stop Solution for all your IT needs.     -  
 Solution to Error status zero when using Ajax with JQuery     -