educative.io

Educative

What does \n do?

Can anyone please tell me what does \n do?

It’s a new line character. Anything after it will appear on a new line in the output. See how it works here:

Selection_012