The Hello World Program
-
import std.stdio; void main() { writeln("Something else... :p"); }
-
import std.stdio; void main() { writeln("A line..."); writeln("Another line..."); }
-
The following program cannot be compiled because the semicolon at the end of the
writeln
line is missing:import std.stdio; void main() { writeln("Hello, World!") // ← compilation ERROR }