Classes and Objects C++ program to find the perfect numbers within a given range

By: Prof. Fazal Rehman Shamil

Write a C++ program to find the perfect numbers within a given range using classes and objects.

Perfect number:A number whose sum of “factors” is equal to the number itself is called perfect number e.g 6(1+2+3) or 28(1+2+4+7+14)

Factor:a number who exactly divides another number is called the factor of that number.

 

Prof. Fazal Rehman Shamil