fork download
  1. #include<iostream>
  2. #include<cstdio>
  3. using namespace std;
  4. int main()
  5. {
  6. int input,number;
  7. cin>>input;
  8. while(input--)
  9. {
  10. cin>>number;
  11. if(number%2==0)
  12. {
  13. printf("even\n");
  14. }
  15. else
  16. {
  17. printf("odd\n");
  18. }
  19. }
  20. return 0;
  21. }
Success #stdin #stdout 0s 3460KB
stdin
3
100
0
1111
stdout
even
even
odd