// Find the First N Perfect Numbers // A Perfect Number is a Number that is the Sum of All Divisors // Less Than Itself #include int SumOfDigits(long); int ProductOfDigits(long); void main() {int ArmstrongsToFind,ArmstrongsFound=0; long NumberBeingTested; cout << "How Many Armstrongs To Find? >"; cin >> ArmstrongsToFind; for (NumberBeingTested=0;ArmstrongsFound0); return(Sum); } int ProductOfDigits(long N) {int digit,Product=1; do { Product*=N%10; N/=10; } while (N>0); return(Product); }