print alphabet for less than nine and even and odd

PHOTO EMBED

Fri Mar 04 2022 17:24:57 GMT+0000 (Coordinated Universal Time)

Saved by @m1racle23 #c++

#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    int a , b;
    cin>>a>>b;
    
    for(int i =a; a<=b ; a++){
        string word[10] = {"" , "one", "two", "three" , "four" , "five" , "six" , "seven", "eight" , "nine"};
        
        if(a>=1 && a<=9){
            cout<<word[a]<<endl;
            
        }
        if(a>9){
            for(;a<=b;a++){
                if(a % 2 ==0){
                    cout<<"even"<<endl;
                    
                }
                if(a % 2 ==1){
                    cout<<"odd"<<endl;
                }
            }
        }
    }
    // Complete the code.
    return 0;
}
content_copyCOPY