#include <iostream>using namespace std;//Tests an entered number for perfect-ness////A positive whole number is ÔperfectÕ if ////the sum of its divisors (apart from itself) ////equals the number.//int main() {	int n,i,a;	cout << "Enter the number you want to check for perfection: ";	cin >> n;		a=1; // sum of divisors so far -- 1 is a divisor of all whole numbers	for (i=2;i<n;i++) {		if (n%i==0)			a=a+i; //add the newly discovered divisor, i, to sum of divisors	}    if (n==a)		cout << "Yep, that's one perfect number alright.\n";	else		cout << "Nope, that were no perfect number.\n";		return 0;}