#include
#include
void main()
{
int i=2,n;
clrscr();
printf("enter no:-");
scanf("%d",&n);
while(i<=n-1)
{
if(n%i==0)
{
printf("no is NOT prime");
break;
}
i++ ;
}
if(i==n)
{
printf("no is prime");
}
getch();
}
this blog is for the new programmer in programing field...
0 comments:
Post a Comment