You are viewing a single comment's thread. Return to all comments →
string nums[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
if (n >= 1 && n <= 9) cout << nums[n-1]; else cout << "Greater than 9";
Seems like cookies are disabled on this browser, please enable them to open this website
Conditional Statements
You are viewing a single comment's thread. Return to all comments →
string nums[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};