Powered By Blogger

Monday, May 4, 2009

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();
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP