The value endl represents the end of line character.
The program prints on two lines
as shown.
Hello
World
test text
1. [ Java ] Printing lines
We can use print or println - the
difference between them is that
println starts a new line.
The program prints on two lines
as shown.
Hello
World
test text
1. [ C# ] Printing lines
We use Console.Write to print without starting a new line.
The command Console.WriteLine starts a new line after
printing.
The program prints on two lines
as shown.
Hello
World
test text
1. [ Perl ] Printing lines
We can use the built in variable $/ to represent the
end or record character. More commonly
we use the escape sequence \n to represent the new line
character