Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write the prime no program in c++?

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


Please Help Members By Posting Answers For Below Questions

What is time_t c++?

1127


How long it will take to learn c++?

1043


How to defines the function in c++?

1128


What does std :: flush do?

1134


Why null pointer is used?

1044


How we can differentiate between a pre and post increment operators during overloading?

1100


What is #include iostream in c++?

1056


What is a singleton c++?

1004


What is ios in c++?

1217


What is different in C++, compare with unix?

1096


What is the use of 'this' pointer?

1247


What are the various operations performed on stack?

1096


What is buffering in c++?

1059


What are mutator methods in c++?

1162


What is bubble sort c++?

1003