fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int s[2];
  4. string num[] = {"zero","one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
  5. string state[]={"Even","Odd"};
  6. int main() {
  7. for(int i=0;i<2;i++){
  8. cin>>s[i];
  9. if(s[i]<9)
  10. cout<<num[s[i]]<<endl;
  11. else
  12. cout<<state[s[i]%2]<<endl;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3468KB
stdin
10
2
stdout
Even
two