Hello world!

Now that we have our first post with a predefined title, we can as well have a closer look into “Hello World”.

The “Hello World” -expression is generally used as an example output in computer programs, specifically when starting to learn a new programming language. A program that outputs “Hello World” or any variation thereof, is called a “Hello World” -program.

The “Hello World” -program is used mostly for demonstrating the basic syntax of a given programming language or technique. It can also function as proof that a given system is able to output anything in the first place. When tinkering with embedded systems, a “Hello World” -program is usually a “Blinker” -application that blinks LEDs.

And on with the examples!

C:
printf("Hello World");

C++:
cout << "Hello World" << endl;

PHP:
echo "Hello World";

Python:
print "Hello World"

Perl:
print "Hello World";

Javascript + HTML:
document.write("Hello World");

BASH:
echo "Hello World";

Lua:
print("Hello World")

Java (thanks jfrech):
System.out.println(“Hello World”);

SQL (thanks mistergoldem):
SELECT 'Hello World!';

TI-BASIC for TI-84 Plus (thanks jfrech again):
Disp "Hello World!"

IBM-PC compatible Basics, like GW-Basic (thanks codedoc255):
10 PRINT “Hello World!”

Later generation Basics (qBasic, TurboBasic) (codedoc255):
print “Hello World!”

Pascal (codedoc255):
Write(‘Hello world!’);

 


And yeah, check Wikipedia (thanks for pointing out, codedoc255) :

More Hello Worlds!

Yet more examples? Post a comment and say hello!

Advertisements

10 comments

  1. Maukku · · Reply

    Hienoa 😉

    Like

  2. Java: System.out.println(“Hello World”);

    Like

    1. Thanks! I’ll add that as soon as I get home!

      Like

  3. Does SQL count?

    SELECT ‘Hello World!’;

    Like

    1. Yeah, I’ll add that right away!

      Like

  4. TI-84 Plus: Disp “Hello World”

    Like

    1. TI-BASIC ? Nice idea!

      Like

  5. Hi there, some examples here.

    IBM-PC compatible Basics, like GW-Basic:
    10 PRINT “Hello Workd!”

    Later generation Basics (qBasic, TurboBasic):
    print “Hello World!”

    Pascal
    Write(‘Hello world!’);

    Liked by 1 person

    1. Oh, right. I guess it’s all there!

      Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: