You are viewing a single comment's thread. Return to all comments →
string arr[9] = {"one", "two", "three", "four","five", "six", "seven", "eight", "nine"}; if(n > 9) cout << "Greater than 9" << endl; else cout << arr[n-1] << endl;
Conditional Statements
You are viewing a single comment's thread. Return to all comments →
string arr[9] = {"one", "two", "three", "four","five", "six", "seven", "eight", "nine"}; if(n > 9) cout << "Greater than 9" << endl; else cout << arr[n-1] << endl;