A curated set of minimal programs that print "Hello, World" in a variety of programming languages. This repository is useful for quick syntax lookups or verifying that a toolchain is configured correctly.
- C –
HelloWorld.c - C# –
HelloWorld.cs - C++ –
Helloworld.cpp - Java –
HelloWorld.java - Python –
HelloWorld.py - Visual Basic –
HelloWorld.vb - TypeScript –
Helloworld.ts - Go –
HelloWorld.go - Ruby –
HelloWorld.rb - Rust –
HelloWorld.rs
Each example is a single file that prints Hello, World! to standard output. Compile or interpret the file using the toolchain for that language:
gcc HelloWorld.c -o hello && ./hellocsc HelloWorld.cs && ./HelloWorld.exeg++ Helloworld.cpp -o hello && ./hellojavac HelloWorld.java && java HelloWorldpython3 HelloWorld.pyvbnc HelloWorld.vb && mono HelloWorld.exetsc Helloworld.ts && node Helloworld.jsgo run HelloWorld.goruby HelloWorld.rbrustc HelloWorld.rs && ./HelloWorldFeel free to submit pull requests that add new languages or improve existing examples.
This project is licensed under the MIT License.