You are viewing a single comment's thread. Return to all comments →
void numberspell (int n ,int m) { string spell[]= {"one","two", "three", "four","five","six","seven","eight","nine"} ; for (;n<=m ;n++) { if (n>= 0 && n <=9) cout << spell[n-1] << endl; if (n>9) { if (n%2) 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 →
}