#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
World Languages,
4 months ago
Accountancy,
4 months ago
Computer Science,
4 months ago
Science,
8 months ago
Physics,
11 months ago
Biology,
11 months ago
Biology,
11 months ago