import std.stdio;
// Let's get going!
void main()
{
writeln("Hello World!");
}
To compile and run, save this text as a file called main.d
. From the command line run dmd main.d
to compile the program. Finally, run ./main
to execute the program in a bash shell or you can click on the executable on windows.