Hello friends, how are you all ? Hope fine. Recently we discussed on  Getting Started with Programming Language. In which we discussed on the basic of programming language and which language you should learn first.  whenever we are learning a new programming language. The first program that we all write or compile is to print HELLO WORLD ! in the output screen. So in this article we will see how you can make HELLO WORLD IN ALL PROGRAMMING LANGUAGES.

Recommended Article >> Top 5 BEST C/C++ IDE for Linux/Windows/Mac


1) Bash

echo "Hello World"

2) C

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

3) C++


int main()
std::cout << “Hello, world!”;
return 0;

4) C#

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

5) Python

print “Hello, world!”


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

7) Javascript

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

8) Pascal

program HelloWorld;
WriteLn(‘Hello, world!’);

9) Ruby

puts “Hello, world!”

10) Matlab

disp (‘Hello, world!’)

11) Basic

PRINT “Hello, world!”

12) Objective C

int main(void)
NSLog(@”Hello, world!”);
return 0;

13) Jquery

$(“body”).append(“Hello world!”);

14) Perl 5

print “Hello, world!”;

15) R

cat(‘Hello, world!’)

16) Swift

println(“Hello, world!”)

17) Visual Basic .NET

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

18) VBscript

MsgBox “Hello, World!”


So this were the code in some of the programming languages.

Comment which one is the easiest of all ? Keep visiting and keep sharing

Share it to the World

Leave a Reply