fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a;
  6.  
  7. scanf ("%d", &a);
  8. if ((a % 6) == 0 && (a % 4) == 0)
  9. {
  10. printf("Input %d is divisible by 6 and 4\n", a);
  11. }
  12. else
  13. {
  14. printf("Input %d is not divisible by 6 and 4\n", a);
  15. }
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 2116KB
stdin
24
stdout
Input 24 is divisible by 6 and 4