fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the number: ");
  6. scanf("%d",&n);
  7. if(n%5==0 || n%3==0){
  8. printf("Divisible");
  9. }
  10. else{
  11. printf("not divisible");
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5292KB
stdin
17
stdout
Enter the number: not divisible