ProgrammingTricks and Tutorials

Write ‘Hello World’ Program in 25 Different Programming Languages

hello world -2

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.


int main(void)
puts(“Hello, world!”);


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


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


public class HelloWorld {

public static void main(String[] args) {
System.out.println(“Hello, World”);


5. JavaScript 

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


print “Hello, world!”

7. Pascal Codes

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

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. PHP

echo “Hello World!”;

13. Bash

echo “Hello World”

14. Perl 5

print “Hello, world!”;

15. Basic

PRINT “Hello, world!”

16. Objective-C

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;
Writeln(‘Hello, world!’);

23. Julia

println(“Hello world!”)

24. Processing

void setup()

println(“Hello, world!”);

25. R

cat(‘Hello, world!’)

Vicky Singh Rao

The author Vicky Singh Rao

I am an entrepreneur at heart who has made his hobby turned passion, his profession now. I love writing about coding, hacking, open-source and cutting-edge technologies.


  1. Hi,
    java should be:

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

  2. 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.

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

  4. section .text
    global _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

  5. i guess you should understand your responsibility as your java code will divert the wanna be java programmers.

    Why so biased about java?

Leave a Response

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