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
Explain how many levels deep can include files be nested?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What are keywords c?
How does struct work in c?
Is c++ based on c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Write a program that accept anumber in words
What does sizeof return c?
Explain the difference between exit() and _exit() function?
Is array name a pointer?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
c program to compute AREA under integral
Do pointers need to be initialized?
what is recursion in C