You can declare the function as You have done
int Prime (int TestNumber);
implementation:
Code:
int Prime (int TestNumber) { int IsPrime; // Here write the logic for testing a number to be prime and return // set value of IsPrime accordingly in logic return IsPrime; }
Code:
void
Leave a comment: