//This program lists all the perfect numbers less than a given positive integer(user input) #include using namespace std; main() { int n,m,i,sum=1; cout << "List all the perfect numbers less than: "; cin >> m; for(n=2;n1;i--) { if(n%i == 0) sum += i; } if(sum == n) cout << n <