Hello World in different programming languages | Codes

“Hello world” is the basic and simplest program possible in almost all computer languages. Every programmer writes it. Here are a quick compare syntax differences between various programming languages.

Hello world in different programming languages slides:

Codes are below image slide.

R

cat('Hello, world!
')

PHP


Java

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!"); 
    }
}

Matlab

disp('Hello, world!')

C++

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

Ruby

puts "Hello, world!"

jQuery

$("body").append("Hello world!");

Objective-c

#import 
#import 
 
int main(void)
{
    NSLog(@"Hello, world!
");
    return 0;
}

Julia

println("Hello world!")

CoffeeScript

console.log 'Hello, world!'

VBScript

MsgBox "Hello, World!"

Bash

echo "Hello World"

Pascal

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

Peral 5

print "Hello, world!";

Swift

println("Hello, world!")

C

#include 
 
int main(void)
{
    puts("Hello, world!");
}

Visual Basic .NET

Module Module1
    Sub Main()
        Console.WriteLine("Hello, world!")
    End Sub
End Module

JavaScript

document.write('Hello, world!');

Python

print "Hello, world!"

C#

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

Hope this topic refresh your memory, and give you short journey through time in the world of computer programming.

Do comment if you want to add any other programing language first program "Hello world".


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.