Total members 10249 | Gratitudes |It is currently Thu May 17, 2012 8:33 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: solution of question
PostPosted: Fri Apr 29, 2011 3:34 pm 
Offline
Newbie
User avatar

Joined: Fri Apr 29, 2011 3:21 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time

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


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: solution of question
PostPosted: Fri Apr 29, 2011 11:02 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2272
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
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 ,

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 need answer to the following question
 Question I hope to be answered
 Question problem
 Passcert 640-760 real question
 Solution to AJax Cache problem with Internet Explorer
 ACTIVATION POWDER & SSD SOLUTION FOR CLEANING BLACK MONEY Ch
 Hassle-Free Solution to Convert DVD to YouTube
 Well I am a newby with a question...
 Solution Architect- Wireless
 What is the best merchant processing solution?

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Google [Bot] and 1 guest



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team