Skip to content

Files

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Newlines in Strings

Working with strings is an essential programming skill.

Task: The given code outputs A B C D (each letter is separated by a space). Modify the code to output each letter on a separate line, resulting in the following output:

A  
B  
C  
D  

You can use either \n or three quotes to add new lines inside the given string.