+ 4
đŸ€”i guess this is it #include<stdio.h> #include<conio.h> void main() { int a,b,c=0; printf("Enter a number"); scanf("%d",&a); for(b=2;b<a;b++) { if(a%b==0) { c=1; break; printf("Number is not prime"); } else { c=0; printf("Number is prime"); } } getch(); }
24th Mar 2018, 1:28 PM
Akash chikara
Akash chikara - avatar