Skip to content

liulingfei-1/Hello-World

 
 

Repository files navigation

Hello World Collection

English | 中文

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.

Supported languages

  • CHelloWorld.c
  • C#HelloWorld.cs
  • C++Helloworld.cpp
  • JavaHelloWorld.java
  • PythonHelloWorld.py
  • Visual BasicHelloWorld.vb
  • TypeScriptHelloworld.ts
  • GoHelloWorld.go
  • RubyHelloWorld.rb
  • RustHelloWorld.rs

Running the examples

Each example is a single file that prints Hello, World! to standard output. Compile or interpret the file using the toolchain for that language:

C

gcc HelloWorld.c -o hello && ./hello

C#

csc HelloWorld.cs && ./HelloWorld.exe

C++

g++ Helloworld.cpp -o hello && ./hello

Java

javac HelloWorld.java && java HelloWorld

Python

python3 HelloWorld.py

Visual Basic

vbnc HelloWorld.vb && mono HelloWorld.exe

TypeScript

tsc Helloworld.ts && node Helloworld.js

Go

go run HelloWorld.go

Ruby

ruby HelloWorld.rb

Rust

rustc HelloWorld.rs && ./HelloWorld

Contributing

Feel free to submit pull requests that add new languages or improve existing examples.

License

This project is licensed under the MIT License.

About

My first repository in Github

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 31.7%
  • Java 13.8%
  • Visual Basic .NET 13.4%
  • C# 12.7%
  • C++ 8.4%
  • C 6.2%
  • Other 13.8%