fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int count=0,n,i;
  5. scanf("%d",n);
  6. for (i=1;i<=n;i++){
  7. if(n%i==0){
  8. count++;
  9. if(count==2){
  10. printf("it is");
  11. }
  12. else {
  13. printf("it is not");
  14. }
  15.  
  16. }
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Standard output is empty