Hello World Program in 25 Different Programming Languages

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.

Hello World Program in Different Programming Languages

In this article, Let’s talk about how to write a 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

public class HelloWorld {

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

}

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

<?php
echo “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!’)

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