Write C++ program to print perfect numbers between given interval using function
belongs to collection: c++ language function and recursion programming exercises
All Answers
total answers (1)
belongs to collection: c++ language function and recursion programming exercises
total answers (1)
I have used CodeBlocks compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.
Result:
Enter lower limit to print perfect numbers: 1
Enter upper limit to print perfect numbers: 10000
All perfect numbers between 1 to 10000 are:
6
28
496
8128
need an explanation for this answer? contact us directly to get an explanation for this answer