I need help to write code that include when youchange the program so that it wor
ID: 3610065 • Letter: I
Question
I need help to write code that include when youchange the program so that it works for many numbers. stopswhen the user enters a number <1. Also when MS DOS open, i willenter any number then when the result come up AND the programshould work for entering another number after entering firstnumber. The close the program the program should say "Should youwant to work more or finish the program. This question wasalready posted few days back and was helped by Rapunzel ofCramster. Now i need another help to make program better.
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.
Write a function int perfect(int number) that determines if theparameter number is a perfectnumber.
Explanation / Answer
please rate - thanks I don't understand this The close theprogram the program should say "Should you want to work more orfinish the program. #include using namespace std; void perfect(int num){ int sum=0; for(int i=1; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.