fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int n;
  5. printf("Enter the number: ");
  6. scanf("%d",&n);
  7. n%2==0? printf("Even"): printf("odd");
  8. /*if(n%5==0 || n%3==0){
  9.   if(n%15!=0){
  10.   printf("divisible");
  11.   }
  12.   else{
  13.   printf("not divisible");
  14.   }
  15.   }
  16.   else{
  17.   printf("not divisible");
  18.   }*/
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0.01s 5288KB
stdin
21
stdout
Enter the number: odd