Hello world

hello world

Posted by Peace on
...
Peace
Peace

A mediocre developer.

Get in touch


ASSEMBLY LANGUAGE

    global  _main
    extern  _printf
    section .text
_main:
    push    message
    call    _printf
    add     esp, 4
    ret
message:
    db  'Hello, World', 10, 0

BASH (UNIX SHELL)

#!/bin/bash
STR="Hello World!"
echo $STR

BASIC

10 PRINT "Hello, World!"
20 END

C

#include <stdio.h>

int main(void)
{
    printf("hello, world\n");
}

C++

#include <iostream>

int main()
{
    std::cout << "Hello, world!\n";
    return 0;
}

C#

using System;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Hello, world!");
    }
}

COFFEESCRIPT

console.log "Hello, World!"

HASKELL

module Main where

main :: IO ()
main = putStrLn "Hello, World!"

JAVA

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Prints the string to the console.
    }
}

JAVASCRIPT (ECMASCRIPT)

console.log("Hello World!");


MATLAB

classdef hello
    methods
        function greet(this)
            disp('Hello, World')
        end
    end
end

NODE.JS

console.log("Hello World!");

PASCAL

program HelloWorld(output);
begin
  Write('Hello, world!')
end.

PERL

print "Hello, World!\n";

PHP

<?php echo "Hello, World";?>

POWERSHELL

Write-Host "Hello, World!"

PYTHON

print("Hello World")

RUBY

puts 'Hello World!'