fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num;
  5.  
  6. printf("Enter a number: ");
  7. scanf("%d", &num);
  8.  
  9. if(num % 2 == 0) {
  10. printf("Even\n");
  11. } else {
  12. printf("Odd\n");
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Enter a number: Even