” Hello World ” written in 10 known programming language

A few days ago I started looking through some of the popular programming language. During some search I wanted to try some of the language in their basic form. I tried simple ” Hello World ” print and got fascinated to see how each language varies where some were similar. Here are the codes I tried –

Assembly ( Hello World.asm ) –

global _start

section .text:

_start:
mov eax, 0x4
mov ebx, 1
mov ecx, message
mov edx, message_length
int 0x80

mov eax, 0x1
mov ebx, 0
int 0x80

section .var:
message: db “Hello World”, 0xA
message_length equ $-message

C ( Hello World.c )-

#include<stdio.h>
int main()
{
printf(“Hello World\n”);
}

C ++ ( Hello World.cpp )

#include<iostream>
using namespace std;
int main()
{
cout << “Hello World\n”;
}

Java ( HelloWorld.java ) –

public class HelloWorld
{
public static void main()
{
System.out.println(“Hello World”);
}
}

Python ( Hello World.py )-

print(“Hello World”)

Rust ( Hello World.rs ) –

fn main()
{
print!(“Hello World”);
}

C# ( Hello World.cs ) –

using System;

public class HelloWorld
{
public static void Main()
{
Console.Write(“Hello World”);
}
}

PHP ( Hello World.php ) –

<?php
echo “Hello World”;

Go ( Hello World.go ) –

package main
import “fmt”
func main() {
fmt.Println(“Hello World”)
}

Fortran 1995 ( Hello World.f95 ) –

program main
print *, “Hello World”
end program main

If you want to see the complete list of languages I tried, Click the link below.

Link :

Leave a comment

Design a site like this with WordPress.com
Get started