Computer Science, asked by dangerousiron, 8 months ago

#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 beingsamadkhan1
0

Answer:

what is this ......???

Answered by studyfan3180
0

sorry I can't understand your question

Similar questions