We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
voidprintString(intn){std::vector<std::string>stringsVector={"one","two","three","four","five","six","seven","eight","nine"};std::stringoutString="Greater than 9";if(n<=9){outString=stringsVector[n-1];}std::cout<<outString<<std::endl;return;}
Conditional Statements
You are viewing a single comment's thread. Return to all comments →