| 13 | } |
| 14 | |
| 15 | int main() |
| 16 | { |
| 17 | int n; |
| 18 | cout<<"Enter a number to check whether it is a perfect number or not: "; |
| 19 | cin >> n; |
| 20 | if (perfectnumber(n) == n) |
| 21 | cout << n << " is a perfect number." << endl; |
| 22 | else |
| 23 | cout << n << " is not a perfect number." << endl; |
| 24 | return 0; |
| 25 | } |
nothing calls this directly
no test coverage detected