← Back to Strings
Question 30
Echo The Word Three Times
Echo The Word Three Times
Read one word and print it three times in a row with nothing between the copies, using the * operator on the string rather than typing it out. Input: one line, the word, no prompt. The output is one line.
Expected Output:
hahaha= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
StringsOperators
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.