#include
void main()
{
int i,n,r=0;
clrscr();
printf("Enter any no: ");
scanf("%d",&n);
for(i=2;i<=n-1;i++)
{
if(n%i==0)
r=1;
break;
}
if(r==0)
printf("prime no");
else
printf("Not prime");
getch();
}
Output:
Enter any no: 16
Not prime
we can share the knowledge with our friends. So they can share with their friends. and so on... Finally You can turn back ...how many of them stand behind you....
Modified By Blogcrowds
No comments:
Post a Comment