โ Back to Loops
Question 344
Reverse a String with a Loop
Reverse a String with a Loop
Read a line of text and use a loop to build and print the reversed string. For example,hellobecomesolleh. For inputhellothe output is: olleh
Expected Output:
olleh
Topics:
Loops
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.