Answer Posted / paramjeet singh
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int i,c;
printf("enter any number\n");
scanf("%d",&i);
printf("you have entered=%d\n",i);
for(c=2;c<=i-1;c++)
{
if(i%c==0)
printf("this no.is not a prime number");
}
printf("this is prime number");
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How a new operator differs from the operator new?
Do you know the problem with overriding functions?
What is the most useful programming language?
What do you mean by function overriding & function overloading in c++?
What is the best it certification?
What do you mean by function and operator overloading in c++?
Why do we use templates?
Is it possible for the objects to read and write themselves?
What do the header files usually contains?
what is a class? Explain with an example.
Using a smart pointer can we iterate through a container?
write a programme to get a character and thier ASCII value
Can a function take variable length arguments, if yes, how?
How to defines the function in c++?
Is c# written in c++?