IT.COM

"Hello world!"

Spaceship Spaceship
Watch
Impact
62
Lets try and get a big collection of "Hello world!" programs!

PHP:
PHP:
<?php echo "Hello world!"; ?>

JavaScript:
Code:
alert("Hello world!")

VB6:
Code:
Private Sub Form_Load()
me.print "Hello world!"
End Sub

Python:
Code:
print "Hello world!"
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
C:
Code:
#include <stdio.h>

main()
{
  printf ("Hello world!");
  return 0;
}

HTML:
Code:
Hello World!
 
0
•••
C++
Code:
#include <iostream>

using namespace std;

int main()
{

cout << "Hello World!";
return 0;

}
 
Last edited:
0
•••
pascal
Code:
program Hello
begin
  writeln('Hello World!')
end.
basic
Code:
PRINT "Hello World!"
JAVA
Code:
class Hello
{
  public static void main( String args[] ) 
  {
    System.out.println("Hello World!");
  }
}
TI-83+Basic
Code:
:Disp "Hello World
and just for fun, BrainF*ck
Code:
++++++++++[>+++++++>++++++++++>+++<<<-]>++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.
 
0
•••
Forgot about Perl... :o

Code:
#!/usr/local/bin/perl
 print "Hello World!";
 
0
•••
Unlambda:
Code:
`r```````````.H.e.l.l.o. .w.o.r.l.di

Shakespeare:
Code:
The Infamous Hello World Program.

Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.


                    Act I: Hamlet's insults and flattery.

                    Scene I: The insulting of Romeo.

[Enter Hamlet and Romeo]

Hamlet:
 You lying stupid fatherless big smelly half-witted coward!
 You are as stupid as the difference between a handsome rich brave
 hero and thyself! Speak your mind!

 You are as brave as the sum of your fat little stuffed misused dusty
 old rotten codpiece and a beautiful fair warm peaceful sunny summer's
 day. You are as healthy as the difference between the sum of the
 sweetest reddest rose and my father and yourself! Speak your mind!

 You are as cowardly as the sum of yourself and the difference
 between a big mighty proud kingdom and a horse. Speak your mind.

 Speak your mind!

[Exit Romeo]

                    Scene II: The praising of Juliet.

[Enter Juliet]

Hamlet:
 Thou art as sweet as the sum of the sum of Romeo and his horse and his
 black cat! Speak thy mind!

[Exit Juliet]

                    Scene III: The praising of Ophelia.

[Enter Ophelia]

Hamlet:
 Thou art as lovely as the product of a large rural town and my amazing
 bottomless embroidered purse. Speak thy mind!

 Thou art as loving as the product of the bluest clearest sweetest sky
 and the sum of a squirrel and a white horse. Thou art as beautiful as
 the difference between Juliet and thyself. Speak thy mind!

[Exeunt Ophelia and Hamlet]


                    Act II: Behind Hamlet's back.

                    Scene I: Romeo and Juliet's conversation.

[Enter Romeo and Juliet]

Romeo:
 Speak your mind. You are as worried as the sum of yourself and the
 difference between my small smooth hamster and my nose. Speak your
 mind!

Juliet:
 Speak YOUR mind! You are as bad as Hamlet! You are as small as the
 difference between the square of the difference between my little pony
 and your big hairy hound and the cube of your sorry little
 codpiece. Speak your mind!

[Exit Romeo]

                    Scene II: Juliet and Ophelia's conversation.

[Enter Ophelia]

Juliet:
 Thou art as good as the quotient between Romeo and the sum of a small
 furry animal and a leech. Speak your mind!

Ophelia:
 Thou art as disgusting as the quotient between Romeo and twice the
 difference between a mistletoe and an oozing infected blister! Speak
 your mind!

[Exeunt]

Chef:
Code:
 Hello World Souffle.
 
 Ingredients.
 72 g haricot beans
 101 eggs
 108 g lard
 111 cups oil
 32 zucchinis
 119 ml water
 114 g red salmon
 100 g dijon mustard
 33 potatoes
 
 Method.
 Put potatoes into the mixing bowl.
 Put dijon mustard into the mixing bowl.
 Put lard into the mixing bowl.
 Put red salmon into the mixing bowl.
 Put oil into the mixing bowl.
 Put water into the mixing bowl.
 Put zucchinis into the mixing bowl.
 Put oil into the mixing bowl.
 Put lard into the mixing bowl.
 Put lard into the mixing bowl.
 Put eggs into the mixing bowl.
 Put haricot beans into the mixing bowl.
 Liquefy contents of the mixing bowl.
 Pour contents of the mixing bowl into the baking dish.
 
 Serves 1.

Befunge:
Code:
>              v
v  ,,,,,"Hello"<
>48*,          v
v,,,,,,"World!"<
>25*,@

HQ9+:
Code:
H

Malbolge:
Code:
 (=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**
 hKs_dG5[m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCBA@98\6543W10/.R,+O<

INTERCAL:
Code:
DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #234
DO ,1 SUB #2 <- #112
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #194
DO ,1 SUB #7 <- #48
PLEASE DO ,1 SUB #8 <- #22
DO ,1 SUB #9 <- #248
DO ,1 SUB #10 <- #168
DO ,1 SUB #11 <- #24
DO ,1 SUB #12 <- #16
DO ,1 SUB #13 <- #214
PLEASE READ OUT ,1
PLEASE GIVE UP
 
0
•••
Turing
Code:
put "Hello World"

Brain Fü*k <- Actually a swear word (Didn't want to get in trouble)
Code:
++++++++++
[>+++++++>++++++++++>+++>+<<<<-]
>++.
>+.
+++++++.
.
+++.
>++.
<<+++++++++++++++.
>.
+++.
------.
--------.
>+.
>.

Only 2 I don't see mentioned
BF is a very weird simple language :O
 
0
•••
Jim already did Brainf*ck. :/

You should look at F*ckf*ck.. everything works the same but instead of using those symbols, it uses "bad" words. :x
 
0
•••
Nice thread, shame the codes i know have already been used :(

...well except standard english

ENGLISH:

Code:
Hello World
 
Last edited:
0
•••
Human isn't a programming language. :(
 
0
•••
Ruby:
Code:
print "Hello World!";
A Javascript Variation
Code:
document.write("Hello World");
 
0
•••
vbScript (almost the same as VB, but however):
Code:
<!-- 
Option Explicit 
document.write("Hello World!") 
-->

vbScript variation (popup):
Code:
<!-- 
msgBox ("Hello World!", vbokcancel, "Hello!") 
-->

Cold Fusion:
Code:
<cfset variable = "Hello World">

<cfoutput>#variable#</cfoutput>

ActionScript:
Code:
trace ("Hello World");

307 Hello World programs over here ...
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back