// This program prints a list of perfect numbers from // 1 to 100. #include #include int main() { int p; int i; int total; for (p = 1; p <= 100; ++p) { total = 0; for (i=1; i