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

“Hello World” is the first program one usually writes when learning a new programming language. When you learn a new programming language, one of the first programs you learn is how to code, “Hello World!”. It is also used to verify that a language or system is operating correctly. The following is a list of “Hello, world” programs in 20 different programming languages.

1. HTML

Hello World!

2. C PROGRAMMING

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

3. C++

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

4. C#

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

Read : Top 5 Youtube Channels To Learn Programming And Coding

5. DELPHI

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

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

7. JAVA SCRIPT

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

8. RUBY

puts “Hello, world!”

9. JQUERY

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

10. MATLAB

disp(‘Hello, world!’)

11. PASCAL

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

12. JULIA

println(“Hello world!”)

13. PERL 5

print “Hello, world!”;

14. PHP

<?php echo ‘<p>Hello World</p>’; ?>

15. BASIC

PRINT “Hello, world!”

16. BASH

echo “Hello World”

17. SWIFT

println(“Hello, world!”)

18. CLIPPER

? “Hello World”

19. OBJECTIVE-C

#import
#import

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

20. PYTHON

print “Hello, world!”

Add Comment

>