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("%d is Even.\n", num);
  11. else
  12. printf("%d is Odd.\n", num);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Enter a number: 32765 is Odd.