ProAnswers.org

How to find wheather a number is prime or composite with C programming?

#include
main()
{
int n,i,j=0;;
clrscr();
printf("
Enter a number :");
scanf("%d",&n);
for(i=1;i