Hello World!

Hello World!

Hi guys!

Today's blog will be quite interesting.

In the world of programming, a simple Hello World! program is a must when one starts learning a specific language.

Hello World! beginners code has been a tradition in coding.

Today we are going to see Hello World! codes in different major known programming languages.

Assembly //First Programming Language

bdos    equ    0005H    ; BDOS entry point
start:  mvi    c,9      ; BDOS function: output string
        lxi    d,msg$   ; address of msg
        call   bdos
        ret             ; return to CCP  
msg$:   db    'Hello, world!$'
end     start

Fortran

PROGRAM Hello
WRITE (*,*) 'Hello, World!'
STOP
END

C

#include 

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

C++

#include 

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

Java

import javax.swing.JFrame;  //Importing class JFrame
import javax.swing.JLabel;  //Importing class JLabel
public class HelloWorld {
    public static void main(String[] args) {
        JFrame frame = new JFrame();           //Creating frame
        frame.setTitle("Hi!");                 //Setting title frame
        frame.add(new JLabel("Hello, world!"));//Adding text to frame
        frame.pack();                          //Setting size to smallest
        frame.setLocationRelativeTo(null);     //Centering frame
        frame.setVisible(true);                //Showing frame
    }
}

Pascal

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

HTML

 Hello World!

Ruby

puts "Hello, world!"

Python

print "Hello, world!"

Swift

println("Hello, world!")

JavaScript

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

C#

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

Hope you guys had a nice time reading this :)

Comment the language you like the most ;)

Moreover, also comment if you think that a language should be included.

Email me at for any queries or suggestions.

Resource websites-

learn.excelwithbusiness.com/blog/post/web-d..

medium.com/javarevisited/70-years-of-hello-..

Will see you guys very very soon!! :)