Hello World!

merrillmck

New Member
Messages
134
Reaction score
0
Points
0
Simple rules: Say "Hello World!" in a natural or computer language and tell us what language you're speaking.

Language: ANSI-C

#include <stdio.h>

int main( char **argv, int argc )
{
printf( "Hello World!" );
return 0;
}
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
<?php
echo "Hello World!";
?>

That's php.

@alexandgrunts, you don't know js too well do you? :biggrin:
Try this:
<script type="text/javascript">
document.write('Hello, World');
</script>
 

merrillmck

New Member
Messages
134
Reaction score
0
Points
0
Language - American English (natural languages too as users here span the globe)

Hello World!

And a "Hello World!" has traditionally been one of the smaller or simpler programs that is self-contained (that will interpret or compile without errors). But if you want to save time and just write the print statement without all the other stuff ... it's all good ... nothing wrong with being lazy or efficient (point-of-view).
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
שלום העולם

Hebrew
 

zen-r

Active Member
Messages
1,937
Reaction score
3
Points
38
Last edited:

merrillmck

New Member
Messages
134
Reaction score
0
Points
0
Tough crowd!

Spanish, gringo:

Hola, mundo!

I think the Basic language scared me from programming for about 10 years. The Trash80 computers didn't help either (that's Tandy if I recall correctly). I think I avoided programming for almost 10 years before learning a little C/C++/Pascal. Late start!
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
BTW ichwar I omitted the HTML part deliberately.
Ok, that's fine, but you still forgot the ; at the end of your command.

Binary:
010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001

Hex:
48656C6C6F20576F726C642100

Octal:
110145154154157040127157162154144041
 

zen-r

Active Member
Messages
1,937
Reaction score
3
Points
38
Ok, that's fine, but you still forgot the ; at the end of your command.

Binary:
010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001

Hex:
48656C6C6F20576F726C642100

Octal:
110145154154157040127157162154144041

How?

Are you saying that if these were converted to ASCII code, then they would read "Hello, World"?

Edit : Just tested it, & yes, you are saying that.

But it's not quite the same thing now, is it?!! Naughty.
 
Last edited:

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
Sure it's the same! Binary is a computer language you after all. Right?

Ok, here's another one for the chief x10forums spammer: ;)

BlaBlaBla (that's zen-r trying to say 'Hello World!') :lol:
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
Ooooooops, did I misspell your pronunciation of Hello World? Maybe you could enlighten is? ;)

Lol, I'm just having some fun at your expense zen-r.
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
lbl1.text = "Hello World!";

C#
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
That's too complicated! :lol:
What about just doing this: <p>Hello World!</p> :biggrin:
 

ichwar

Community Advocate
Community Support
Messages
1,454
Reaction score
7
Points
0
I don't know if anyone's done this yet, so I'll do this to revive this thread.

System.out.println("Hello World!);

or

Graphics g = mainPanel.getGraphics();
g.drawString("Hello World!", 25, 25);

Those are two different ways to do this in java.
 

esalman

New Member
Messages
5
Reaction score
0
Points
0
import flash.text.*;
tf:TextField = new TextField();
tf.text = "Hello, world!";

ActionScript. zzz...
 

whizynix02

New Member
Messages
95
Reaction score
0
Points
0
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl; cout << "Welcome to C++ Programming" << endl; }
 
Top