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