Given a string variable word, write a string expression that parenthesizes the value of word. So, if word contains “sadly”, the value of the expression would be the string “(sadly)”
LANGUAGE: C++
CHALLENGE:
Given a string variable word, write a string expression that parenthesizes the value of word. So, if word contains “sadly”, the value of the expression would be the string “(sadly)”
SOLUTION:
"("+word+")"