• + 0 comments
    int main() {
        string words[] = {
            "one", "two", "three", "four", 
            "five", "six", "seven", "eight", 
            "nine"
        }; 
        
        int a, b; 
        cin >> a;
        cin >> b; 
        
        for (int i = a; i <= b; i++) {
            if(i >= 1 && i <= 9) {
               cout << words[i - 1] << "\n"; 
            }
            else if (i > 9) {
                if( i % 2 == 0) {
                    cout << "even \n"; 
                }
                else {
                    cout << "odd \n"; 
                }
            }
        }
        
        return 0;
    }