#include
#include
void main()
{
clrscr();
int a ,i ;
i=2;
printf("please enter a number and I will tell you if the number is prime number or not");
scanf("%d",&a);
if(a%i==0)
{
printf("%d is not a prime number",a);
}
else
{
while(a%i!= 0||a==i)
{
++i;
}
if(i!=a)
{
printf("%d is not a prime number",a);
}
if(i==a)
{
printf("%d is a prime number ",a);
}
}
getch();
}
//wht is wrong in this code
Answers
Answered by
0
Answer:
what is this ......???
Answered by
0
sorry I can't understand your question
Similar questions
Chemistry,
4 months ago
English,
4 months ago
India Languages,
4 months ago
Science,
9 months ago
Biology,
1 year ago