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 function and its example?

624


How can I open files mentioned on the command line, and parse option flags?

593


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

632


What is a program flowchart and how does it help in writing a program?

659


write a program to rearrange the array such way that all even elements should come first and next come odd

1760






Write a program of prime number using recursion.

617


Explain what is the difference between #include and #include 'file' ?

583


Do variables need to be initialized?

619


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1542


Who developed c language?

637


Is fortran faster than c?

579


What is the best organizational structure?

642


What is indirection? How many levels of pointers can you have?

657


What are directives in c?

544


what is reason of your company position's in india no. 1.

1775