Hello World Program in D
import std.stdio;
void main() {
writeln("Hello World!");
}
The main
function is the entry point to a D program.
In this example,
we use the writeln
function from std.stdio
to print out the desired string to the output.
If you compile and run this program, you will get the following output:
Hello World!
What's Next
If you are interested in learning D programming, then go ahead and set up a development environment.
- Next Step: D development environment setup
C C++ C# Clojure Crystal Dart Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript