fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int a ;
  5. printf("Enter an integer \n");
  6. scanf(" %d " , &a);
  7. if (a & 1 == 1)
  8. printf("Odd \n");
  9. else
  10. printf("even \n");
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 4468KB
stdin
99
stdout
Enter an integer 
Odd