fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the first number: \n");
  6. scanf("%d",&n);
  7.  
  8. int remainder= n%10;
  9. if(remainder/2==0) printf("Even");
  10. else printf("Odd");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5320KB
stdin
667
stdout
Enter the first number: 
Odd