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
What is function and its example?
How can I open files mentioned on the command line, and parse option flags?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is a program flowchart and how does it help in writing a program?
write a program to rearrange the array such way that all even elements should come first and next come odd
Write a program of prime number using recursion.
Explain what is the difference between #include and #include 'file' ?
Do variables need to be initialized?
#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??
Who developed c language?
Is fortran faster than c?
What is the best organizational structure?
What is indirection? How many levels of pointers can you have?
What are directives in c?
what is reason of your company position's in india no. 1.