Computer Science, asked by Dharaneeshwar, 1 year ago

to check whether a number is prime number in c program

Answers

Answered by mankrit
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 Traitor
1
int flag=0,i,n;
......
......
......
for (i=0;i if (i%2=0)
printf("prime")
else
flag=1;
printf ("not prime")

Dharaneeshwar: I can't understand what is flag
mankrit: search for the term on Internet
mankrit: it will be more clear
Dharaneeshwar: ok
mankrit: hey the word flag is a variable and not a term
Similar questions