Logo 
Search:

C Programming Forum

Ask Question   UnAnswered
Home » Forum » C Programming       RSS Feeds

prime number problem

  Asked By: Praveen    Date: Dec 28    Category: C Programming    Views: 1001
  

sir i write the program of prime number and it exucated successfully but in the output we see the when we enter the prime no.then it give the coorect result bt when we enter the non prime no. then it showe me unexpected output it shoe me this is not prime no. becusee it is divisble by 2 and in 2nd line show the enter no is prime no why pleas help me

Share: 

 

1 Answer Found

 
Didn't find what you were looking for? Find more on prime number problem Or get search suggestion and latest updates.




Tagged: