How To Say ‘Hello World’ in 25 Different Programming Languages

How To Say ‘Hello World’ in 25 Different Programming Languages


Google’s New Website To Learn Computer Science and Programming
Five Facts about Dennis Richie – The Inventor of C Language

Printing ‘Hello World’ is the most famous program. It is the first example in nearly every programming language for every programmer. Traditionally, it’s the first program developers use to test systems. For programmers, seeing the two words on the screen means their code can compile, load, run and they can see the output.

Read Later: Five Facts about Dennis Richie – The Inventor of C Language

In this article, Let’s talk about how to write HELLO WORLD program in 25 different programming languages. You’ll also know the difficulty and simplicity of these programming languages after looking at their syntax.

1. C PROGRAMMING

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

2. C++ PROGRAMMING

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

3. C# PROGRAMMING

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

4. JAVA PROGRAMMING

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
}
}

5. JavaScript 

document.write(‘Hello, world!’);

6. Python PROGRAMMING

print “Hello, world!”

7. Pascal Codes

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

8. Ruby

puts “Hello, world!”

9. Visual Basic .NET

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

10. MatLab

disp (‘Hello, world!’)

11. Swift

println(“Hello, world!”)

12. jQuery

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

13. Bash

echo “Hello World”

14. Perl 5

print “Hello, world!”;

15. Basic

PRINT “Hello, world!”

16. Objective-C

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

17. XSLT

Hello World

18. CoffeeScript

console.log ‘Hello, world!’

19. Logo

print [Hello, world!]

20. VBScript

MsgBox “Hello, World!”

21. Clipper

? “Hello World”

22. Delphi

program HelloWorld;
begin
Writeln(‘Hello, world!’);
end.

23. Julia

println(“Hello world!”)

24. Processing

void setup()

{
println(“Hello, world!”);
}

25. R

cat(‘Hello, world!’)

COMMENTS

WORDPRESS: 28
  • comment-avatar
    Paks 7 months

    missed one of the famous programming language – PHP
    echo “Hello, World”;

    • comment-avatar
      Benjamin 7 months

      PHP is not a programming language is a script language mainly for web.

      • comment-avatar
        Michael Short 7 months

        By that logic, so is Javascript

        • comment-avatar
          asd 4 months

          JQUERY WTF????????????????????????????????”””””””””””””
          asdfgdaxzc

      • comment-avatar
        haythem radhoini 4 months

        nah man javascript is the script language .with php you can do anything other programming languages do

    • comment-avatar
      Nasarullah Bhoraniya 4 months

      Is javascript is language ?

  • comment-avatar
    izll 7 months

    Hi,
    java should be:

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

    • comment-avatar
      haythem radhoini 4 months

      yeah the writer made javax application

    • comment-avatar
      Daniel 4 months

      I agree

      • comment-avatar
        Faotu Happy 4 months

        Android is an operating system (OS) just like the windows 7 or windows xp not a programming language

  • comment-avatar
    Elias 7 months

    Coldfusion

    #variables.var#

  • comment-avatar
    jason 7 months

    what about in android

    • comment-avatar
      Shariful 4 months

      Andoid is not a programming language bro.

    • comment-avatar

      Bro android is operating system not a programming language

  • comment-avatar
    Janice 7 months

    I like it a great deal of! Many thanks for this text! Exceptional of course!
    I’ll probably give it to many of my friends.

  • comment-avatar
    axar lotwala 7 months

    any update of It World please notify me…

  • comment-avatar
    Magnus Sörensen 4 months

    ++++++++++[>+++++++>++++++++++>+++>+<<<++.>+.+++++++..+++.>++.<.+++.——.——–.>+.>.

  • comment-avatar
    attila 4 months

    Can you please update the java one? It’s pretty annoying..

  • comment-avatar
    Sam 4 months

    Should update Python to Python 3:

    print(“Hello world!”)

  • comment-avatar
    Sam 4 months

    jquery is not language. it is library javascript’s 🙂

  • comment-avatar

    In Sidef:

    say „Hello, world!”

  • comment-avatar
    Prudvi 3 months

    Wtf java?
    Class demo
    {
    public static void main(String [] args)
    {
    System.out.println(“hello world”);
    }
    }
    THis is it!

  • comment-avatar
    Shubham Priyesh 3 months

    In Java, it is much shorter than yours!!
    Class Hello
    {
    public static void main(String args[])
    {
    System.out.print(“Hello World!! “);
    }
    }

  • comment-avatar
    Alessandro Scala 2 months

    section .text
    global _start
    _start:
    mov eax, 4
    mov ebx, 1
    mov ecx, msg
    mov edx, msgl
    int 0x80

    mov eax, 1
    int 0x80

    section .data
    msg db ‘Hello, World!’, 0xA, 0xD
    msgl equ $-msg

  • comment-avatar
    Petani Kode 2 months

    Coffee Script is not programming language

  • comment-avatar
    Fulck.com 2 months

    Missing assembler. Anyone?

  • comment-avatar
    Yugorin 1 month

    ldx #$00
    loop: lda hello,x
    sta $0400,x
    inx
    cpx #$0c
    bne loop
    rts

    hello: .text “hello world!”