You are viewing a single comment's thread. Return to all comments →
int n = stoi(ltrim(rtrim(n_temp))); if(n>=1 && n<=9){ cout<<static_cast<char>(n); }else{ cout<<"Greater than 9."; } why does this didn't worked??
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 →