Here's a rather nice example using a for-loop to step through each character of a string, writing them out once per line.
It's a short example, but illustrates some important ideas. Have a close look at it and try things until you're comfortable you understand every aspect of it.