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
What is the difference between multiple and multilevel inheritance in c++?
Name four predefined macros.
Explain container class.
What is the limitation of cin while taking input for character array?
How would you find out if a linked-list is a cycle or not?
Why is main an int?
When is dynamic checking necessary?
How much is c++ certification?
Why do we learn c++?
What are the important differences between c++ and java?
Can we sort map in c++?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is the best c++ ide?
What is this pointer in c++?
What is a manipulator in c++?