โ Back to User Input
Question 294
Trim the Input
Trim the Input
Read a line that may have extra spaces at the start and end, and print it with that surrounding whitespace removed usingTrim(). For the inputhello, print: hello
Expected Output:
hello
Topics:
User Input
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.