CJCoding With Joseph

Reverse a String with a Loop

Read a line of text and use a loop to build and print the reversed string. For example, hello becomes olleh.

For input hello the output is:

olleh

Expected Output:

olleh
Topics:
Loops
๐Ÿ“ฅ Auto-Input:
hello\n
This input is automatically fed to your program's stdin
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.