Hi Guys, I need another help with perfect number. Thesequestions are continued f
ID: 3610012 • Letter: H
Question
Hi Guys, I need another help with perfect number. Thesequestions are continued from part 1. See posted question somewherein Question board of computer science.An integer is said to be a perfect number if all its factors,including 1 (but not the number itself), sum to that number. For example, 6 is a perfect number because 1, 2, and 3 are all thefactors of 6 (ignoring the number itself) and 1 + 2 + 3 = 6.
2. Use this function in a program that calculates andprints all the perfect numbers between 1 and 10000.
3. Print all the factors of each perfect number to confirm thatthe number is indeed perfect.
Explanation / Answer
please rate - thanks part 2 #include using namespace std; void perfect(int num){ int sum=0; for(int i=1; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.