Answer Posted / darren chang
bool checkPrime(int input)
{
for(int i=2; i<(input/2); i++)
{
if((input%i)==0)
{
return false;
}
}
return true;
}
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What is time_t c++?
How long it will take to learn c++?
How to defines the function in c++?
What does std :: flush do?
Why null pointer is used?
How we can differentiate between a pre and post increment operators during overloading?
What is #include iostream in c++?
What is a singleton c++?
What is ios in c++?
What is different in C++, compare with unix?
What is the use of 'this' pointer?
What are the various operations performed on stack?
What is buffering in c++?
What are mutator methods in c++?
What is bubble sort c++?