← Back to Strings
Question 39
Put The Word In Quotes
Put The Word In Quotes
Read one word and print it wrapped in double quotes, so the output line begins and ends with the " character. Because the string literal uses single quotes on the outside, the double quotes inside it are ordinary characters and no escape is needed. Input: one line, the word, no prompt.
Expected Output:
"hello"= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Strings
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.