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 is variable and explain rules to declare variable in c?

1017


In a switch statement, what will happen if a break statement is omitted?

1006


Do variables need to be initialized?

992


Which header file is used for clrscr?

999


What is C language ?

1902


What is keyword with example?

1013


What are the application of c?

1044


what does static variable mean?

1050


Distinguish between actual and formal arguments.

1013


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1075


Differentiate between null and void pointers.

1117


Why is sizeof () an operator and not a function?

985


What does it mean when a pointer is used in an if statement?

1061


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

958


Describe explain how arrays can be passed to a user defined function

1039