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 program for prime numbers?

Answer Posted / neetu singh

#include<iostream.h>
#include<conio.h>
void main()
{
int n,i;
for(i=0;i<10;i++)
{
if(n<=o)
}
{
cout<<"number is prime");
cout<<"number is not prime");
getch();
}

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the back slash character constants or escape sequence charactersavailable in c?

1178


how to execute a program using if else condition and the output should enter number and the number is odd only...

2297


What is ponter?

1265


Here is a neat trick for checking whether two strings are equal

1018


Why static is used in c?

1092


What is meant by type casting?

1052


When is a “switch” statement preferable over an “if” statement?

1144


Do string constants represent numerical values?

1392


Is null valid for pointers to functions?

1170


How can I sort a linked list?

1049


How was c created?

1057


How do I swap bytes?

1070


What is the difference between printf and scanf )?

1097


What is int main () in c?

1085


please send me the code for multiplying sparse matrix using c

2174