Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,701 members, 7,809,661 topics. Date: Friday, 26 April 2024 at 12:39 PM

How To Say "Hello World" In Different Programming Languages - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How To Say "Hello World" In Different Programming Languages (3103 Views)

Tutorials & Videos On Different Programming Languages!!! / Uses Of Different Programming Languages / Uses Of Different Programming Languages (2) (3) (4)

(1) (Reply) (Go Down)

How To Say "Hello World" In Different Programming Languages by TrillionBrains(m): 2:29pm On Dec 22, 2016
20 Ways To Say "Hello World" In Programming
No doubt 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.
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!”
http://trillionclues..com.ng/2016/12/how-to-say-hello-world-in-different.html
Re: How To Say "Hello World" In Different Programming Languages by worisj(m): 7:29pm On Dec 22, 2016
Haba You Just Had To Make Java Look Extremely Hard When System.out.println(" Hello World"wink Would Have Done It!! Btw Where Is Php And Its Echo? And That Jquery Can Also Be $("body"wink.html("<h1> Hello World"</h1>wink.
Whts The Diff Btw Console.log() and document.write() in javascript?
That C++ tho i doubt if i'll ever go near that lang

8 Likes

Re: How To Say "Hello World" In Different Programming Languages by Olumyco(m): 7:37pm On Dec 22, 2016
TrillionBrains:
20 Ways To Say "Hello World" In Programming
No doubt 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.
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!”
http://trillionclues..com.ng/2016/12/how-to-say-hello-world-in-different.html


You could have separated GUI inclined programming from -'programming itself' (terminal/console)

Like JavaScript now can be:

console.log("Hello, World!"wink;


Java:

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

Also jQuery is not a programming language.

That XSLT there is controversial......
Re: How To Say "Hello World" In Different Programming Languages by Olumyco(m): 7:37pm On Dec 22, 2016
TrillionBrains:
20 Ways To Say "Hello World" In Programming
No doubt 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.
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!”
http://trillionclues..com.ng/2016/12/how-to-say-hello-world-in-different.html


You could have separated GUI inclined programming from -'programming lang itself' (terminal/console)

Like JavaScript now can be:

console.log("Hello, World!"wink;


Java:

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

Also jQuery is not a programming language.

That XSLT there is controversial......
Re: How To Say "Hello World" In Different Programming Languages by jboy01(m): 8:40pm On Dec 22, 2016
this guy will make newbie run away from java

1 Like

Re: How To Say "Hello World" In Different Programming Languages by bet9ja(m): 11:44pm On Dec 22, 2016
Print "Wetin java do you now?"
Re: How To Say "Hello World" In Different Programming Languages by Sync201(m): 12:50am On Dec 23, 2016
C++===

#include upstream
Uu
Re: How To Say "Hello World" In Different Programming Languages by Sync201(m): 12:52am On Dec 23, 2016
C++===

#include upstream
using namespace std ;

int main()
{
cout << "hello world";
return 0;
}
Re: How To Say "Hello World" In Different Programming Languages by Nobody: 2:44pm On Dec 23, 2016
Cheiii. Guy u hate Java no be small o -- Btw JQuery is a library, XSLT a markup templating engine, they no suppose dey that list na.

1 Like

Re: How To Say "Hello World" In Different Programming Languages by asalimpo(m): 3:11pm On Dec 25, 2016
Sir, dyu have an axe to grind with java?

# objective c is wacked.
Re: How To Say "Hello World" In Different Programming Languages by shirgles(m): 12:51pm On Dec 27, 2016
Good
Re: How To Say "Hello World" In Different Programming Languages by appcypher: 10:44am On Dec 28, 2016
Astro:
println 'Hello, World!'
Re: How To Say "Hello World" In Different Programming Languages by TrillionBrains(m): 2:39am On Dec 30, 2016
1. Tell Google to do a Barrel Roll:
It is quite amazing and spectacularly to tell a Google search to turn around and sure it obeys and does exactly what you tells it. That's the situation here, it works on definitely any browser you try it on. A handy tool to show off you smartness.

2. Google Timer:
Type in ‘five minute timer’ and Google will present you with just that. In fact, you can request a timer of any length at all. What a cool feature!

3. Google Books Ngram Viewer:
Google Ngram allows you to search through over 5 million books printed since 1500 to see how frequently they have been mentioned through the centuries. This is very informative!

4. Spelling out Long Numbers:
Some numbers are so long that it can be hard to figure out exactly how they are to be said in English. Fortunately, Google allows you to find out simply by typing the number followed directly by =English.

5. Manual Writing:
For those learning peculiar writing systems, like the Japanese, Google Translate allows you to write by hand the symbol which it will then translate for you.

6. Google Fonts:
If you are looking for a fun and stylish font to use, Google Fonts offers many that you can download for free.

7. Google Scholar:
Google Scholar is a database designed for searching academic articles and books that have been peer-reviewed. So, if you need to look for something from a particularly refined subject, this is the best place for it.

8. Google Trends:
Google Trends allows you to see what people around the world are most interested in on any given day, or over certain periods of time.

9. Animal Sounds:
Whether you type in ‘Animal Sounds’ or just the name of a certain animal, Google has stored a vast number of animals sounds you can hear at the drop of a hat. This is great fun when you want to play with infants.

10. Zerg Rush:
If you actually enter the above command in your search, little-like O's will pup-out, flying all over your browser, tends to clean up the whole search results then at last forms the letter "". Quite a blissful encounter.

11. "the answer to life the universe and everything":
when entered in Google, it displays a certain calculator displaying the number 42. Well, it is yet to be known what this number stands for.

12. Find chuck norris:
This displays the statement below;
Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you. Your search - Chuck Norris - did not match any documents. Suggestions: Run, before he finds you.
So, just as Google suggested, run before it finds you. To where!
http://trillionclues..com.ng/2016/12/great-google-tricks-i-never-even-knew.html
Re: How To Say "Hello World" In Different Programming Languages by okwyee(m): 9:11am On Jan 01, 2017
WTF!!!!! Is that really Java... it hard oohs, me that thought C was the hardest
Re: How To Say "Hello World" In Different Programming Languages by MrKamar(m): 10:04am On Jan 01, 2017
In bot.io

import sys*;
import console or require(sys/bin/io);

main function = {
if(what.i(saying)){
write "Hello";
return true;
} esle or(me.crazy())
return true;
else{
return false;
}
}

checkError = function{
watch(main() or init.require(sys/main)){
observer = conslog.get(return.Value.from(main));
write.console = new console;
write.console.show("guys this is rubbish"wink;

}
}


In English language

print, show, write or display Hello world.
grin
Re: How To Say "Hello World" In Different Programming Languages by Absuchat(m): 11:59am On Jan 03, 2017
php

<?php

echo"Hello world ";

?>
Re: How To Say "Hello World" In Different Programming Languages by TrillionBrains(m): 1:48pm On Jan 04, 2017
Trillionclues..com
Re: How To Say "Hello World" In Different Programming Languages by seunny4lif(m): 6:04pm On Jan 04, 2017
Bros just make Java hard ooooh
Re: How To Say "Hello World" In Different Programming Languages by Absuchat(m): 7:39am On Feb 07, 2017
Java

public class helloworld{

//Not necessary//
helloworld(){
}

public void main(){

system.out.println("Hello world"wink
;

}
}
Re: How To Say "Hello World" In Different Programming Languages by Acebrain28(m): 4:12pm On May 01, 2020
TrillionBrains:
20 Ways To Say "Hello World" In Programming
No doubt 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.
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!”
http://trillionclues..com.ng/2016/12/how-to-say-hello-world-in-different.html


Awesome!

(1) (Reply)

Who Else Notices These ???? / Nodejs Viable In Nigeria ? / Vb.net Save Picture

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 38
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.