Hello, World!
Ali Çehreli
acehreli at yahoo.com
Fri Mar 25 20:29:22 UTC 2022
Welcome! :)
(We have a Learn forum (newsgroup) as well, where such posts are more
suitable.)
On 3/25/22 13:07, Anonymous wrote:
> **Input:**
> ```d
> void main()
> {
> import std.stdio : writeln;
> writeln("Hello, World!\n");
> //I'm not sure if the ^^ is necessary or not
It may be useful if you want an additional empty line. ;)
Otherwise, writeln is short form "write line", implying a newline will
be printed at the end. (Conversely, write() does not add a newline.)
> }
> ```
>
> **Output:**
> ```
> Hello, World!
> ```
> That's it.
I like it! :)
Ali
More information about the Digitalmars-d
mailing list