fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. int i;
  6. printf("Enter the number: ");
  7. scanf("%d",a);
  8. for(i=2;i<a;i++){
  9. if(a%i==0){
  10. printf("\n The number is compound");
  11. }
  12. if(a%i!=0){
  13. printf("\n The number is simple");
  14. }
  15.  
  16. }
  17. return 0;
  18. }
  19.  
Runtime error #stdin #stdout 0s 2172KB
stdin
14
stdout
Standard output is empty