Please help with writing a loop for the program that must display/print every prefect number from 1 through 1000
nthabiJacq
0
Newbie Poster
Recommended Answers
Jump to PostFirst you must tell the computer how to calculate a perfect number, if I remember correctly you're meaning prime which simply means it's only divisible by itself and 1. So create a list of integers then add each prime as it finds it. Hope it helps.
List<int> …
All 4 Replies
lxXTaCoXxl
26
Posting Whiz in Training
skatamatic
371
Practically a Posting Shark
thines01
401
Postaholic
Team Colleague
Featured Poster
lxXTaCoXxl
26
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.