Learn to Program with ZedLX

Free Online Programming Course for Beginners

Arrays [7/11]

The elements of an array can be of type string.

Exercise:

  1. Modify the program to print the number of characters in each line of the song, followed by the line itself. For example:

    29: When the blazing sun is gone,

Solution

    :println songLyrics[i].n, ": ", songLyrics[i]

Loading...