fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5.  
  6. int w;
  7. scanf("%d", &w);
  8. if ( w% 2 == 0) {
  9. printf("even \n");
  10. } else if (w%4==0){
  11. printf("multiple of 4\n");
  12. }
  13. else if (w%6==0){
  14. printf("multiple of 6\n");
  15. }
  16. if ( w% 2 != 0)
  17. { printf("multiple of odd\n");
  18. }
  19. else if (w%5==0){
  20. printf("multiple of 5\n");
  21. }
  22. else if (w%7==0){
  23. printf("multiple of 7\n");
  24. }
  25.  
  26. return 0;
  27. }
  28.  
  29.  
Success #stdin #stdout 0.01s 5288KB
stdin
14
stdout
even 
multiple of 7