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. if(n%15!=0){
  9. printf("divisible");
  10. }
  11. else{
  12. printf("not divisible");
  13. }
  14. }
  15. else{
  16. printf("not divisible");
  17. }
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5300KB
stdin
15
stdout
Enter the number: not divisible