to check whether a number is prime number in c program
Answers
Answered by
1
Go on Internet and search source code for finding prime numbers in c you will find it there. Analysis the program to understand it better
Answered by
1
int flag=0,i,n;
......
......
......
for (i=0;i if (i%2=0)
printf("prime")
else
flag=1;
printf ("not prime")
......
......
......
for (i=0;i if (i%2=0)
printf("prime")
else
flag=1;
printf ("not prime")
Dharaneeshwar:
I can't understand what is flag
Similar questions