C Programming
#include
#include
main()
{
clrscr();
int a,n;
scanf("%d",&a);
if(a%1!=0&&a%3!=0||a%5!=0||a%7!=0)
{printf("The number is not prime");
}
else
{printf("The number is prime");
}
getch();
}
Computer is the most important and mysterious invention of the world.Now a days we can not imagine our life without it.Welcome to my computer world.
#include
#include
main()
{
clrscr();
int a,n;
scanf("%d",&a);
if(a%1!=0&&a%3!=0||a%5!=0||a%7!=0)
{printf("The number is not prime");
}
else
{printf("The number is prime");
}
getch();
}
© Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008
Back to TOP
0 comments:
Post a Comment