How to write a "Hello World" program in Crystal
Crystal is an object-oriented programming language that shares the syntax, elegancy, and productivity of Ruby while incorporating the speed, efficiency, and type safety of a compiled language.
A simple “Hello World” program in Crystal is shown below. Note that this is the same syntax that is utilized in Ruby.
puts "Hello World!"
To learn more about programming in Crystal, check out their
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved