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.
intmain(){stringn_temp;getline(cin,n_temp);intindex=stoi(n_temp);vector<string>words;words.push_back("one");words.push_back("two");words.push_back("three");words.push_back("four");words.push_back("five");words.push_back("six");words.push_back("seven");words.push_back("eight");words.push_back("nine");if(index<10)cout<<words[index-1]<<endl;elsecout<<"Greater than 9"<<endl;return0;}
Cookie support is required to access HackerRank
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 →