Hello world
Create the following file in your favorite text editor:
Compile it:
and execute it as any other binary:You can compile and execute it in one shot:
And you can avoid all the non essential messages by doing:
Visit Nim Compiler User Guide, to find out about what can be done with Nim's compiler.