W3cubDocs

/Crystal

Hello World!

The classic "hello world" program looks like this in Crystal:

puts "Hello world!"

From this you can see that the main routine is simply the program itself: there's no need to define a "main" function or something similar.

To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/overview/hello_world.html