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