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 variable and explain rules to declare variable in c?
In a switch statement, what will happen if a break statement is omitted?
Do variables need to be initialized?
Which header file is used for clrscr?
What is C language ?
What is keyword with example?
What are the application of c?
what does static variable mean?
Distinguish between actual and formal arguments.
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Differentiate between null and void pointers.
Why is sizeof () an operator and not a function?
What does it mean when a pointer is used in an if statement?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Describe explain how arrays can be passed to a user defined function