Solve : please tell me error in this program of prime no.(i had made it )?
Answer»
#include; #include; void main(){ int a,B,C,d; printf("ENTER no."); scanf("%d",&a); for(c=2;c<=a;c++){ b=c%a;} if(b==0){printf("it is not a prime no.");} else printf("it is prime no."); getch(); }I told you - no more help with HOMEWORK.