I have to write a program that will determine the perfectnumbers between 5 and 500 and also determine the prime numbersbetween 10 and 300. i'm supposed to use the prototypes: bool IsPerfect(int); bool IsPrime(int); i'm pretty lost on this, any help would be greatlyappreciated!!! I have to write a program that will determine the perfectnumbers between 5 and 500 and also determine the prime numbersbetween 10 and 300. i'm supposed to use the prototypes: bool IsPerfect(int); bool IsPrime(int); i'm pretty lost on this, any help would be greatlyappreciated!!!
Explanation / Answer
please rate - thanks #include using namespace std; bool isPrime(int); bool isPerfect(int); int main() {int i,k=0; cout