Hello, World!

2019-12-21
1/* Hello world in C* */
2
3#include <stdio.h>
4
5main()
6{
7    printf("Hello World!\n");
8}
1//Hello World in C#
2class HelloWorld
3{
4    static void Main()
5    {
6        System.Console.WriteLine("Hello, World!");
7    }
8}
1// Hello World in C++ (pre-ISO)
2
3#include <iostream.h>
4
5main()
6{
7    cout << "Hello World!" << endl;
8    return 0;
9}
1/* Hello World in CSS */
2body:before {
3    content: "Hello World";
4}
1// Hello world in Go
2
3package main
4import "fmt"
5func main() {
6  fmt.Printf("Hello World\n")
7}
1<HTML>
2<!-- Hello World in HTML -->
3<HEAD>
4<TITLE>Hello World!</TITLE>
5</HEAD>
6<BODY>
7Hello World!
8</BODY>
9</HTML>
1// Hello world in JavaScript
2
3console.log("Hello World");
# Hello world in Loli

sayln("Hello, world!")
1# Hello World in Lua
2
3print "Hello world"
1# Hello world as a makefile
2
3all:
4    @echo "Hello world!"
1# Hello world in perl
2
3print "Hello World!\n";
1<?php
2  // Hello world in PHP
3  echo 'Hello World!';
4?>
1# Hello world in Python 3 (aka Python 3000)
2
3print("Hello World")
1// Hello world in Rust
2
3fn main() {
4    println!("Hello World!");
5}
1// Hello world in TypeScript
2
3alert('Hello world!');
1# Hello world for the Unix shells (sh, ksh, csh, zsh, bash, fish, xonsh, ...)
2
3echo Hello World
1// Hello world in Zig
2
3const io = @import("std").io;
4
5pub fn main(args: [][]u8) -> %void {
6    %%io.stdout.printf("Hello, world!\n");
7}

more