You are viewing a single comment's thread. Return to all comments →
#include<bits/stdc++.h> using namespace std; int main() { long long n=0, n1=0; cin>>n; cin>>n1; string number[]={"one","two","three","four","five","six","seven","eight","nine"}; for (int i=n;i<=n1;i++) { if (i<=9){cout<<number[i-1]<<endl;} else if ((i%2)==1) cout<<"odd"<<endl; else cout<<"even"<<endl; } }
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop
You are viewing a single comment's thread. Return to all comments →