Skip navigation.

Hacking around

To make life easier

Hello World without hello world

,

So a little programming task for all of you who like to solve problems. Write a program that prints out "hello world" (without quotes) without using "h", "e", "l", "o", "w", "r" or "d" in the code at all, not in strings nor in variable, function or command names or any reserved words. Let's see how many different solutions in different programming languages we can get.

Post your solutions in comments and make sure to also mention which programming language it is written in.

Regshx - Registry editing shell tool

Comments

godjonez 17. April 2009, 15:33

Here's one in C (not completely valid, but for example GCC will compile it with some warnings and it works):

int main() {
int c[] = {0x6c6c6568, 0x6f77206f, 0x646c72};
puts(c);
}

Anonymous 20. April 2009, 19:07

-luXus writes:

You could use brainfuck ;-) :

++++++++++[>+++++++>++++++++++>+++>+ ++.>+.+++++++..+++.>++. .+++.------.--------.>+.>.

Anonymous 8. July 2009, 01:45

hhh3h writes:

No fair. You can't do it in VB.NET at all, mostly because of "e"

End If | End Sub | End Class | etc

Anonymous 8. July 2009, 01:53

hhh3h writes:

Wait:

Print(LCasE("HELLO WORLD"))

Case insensitivity for the win?
(VB.NET)

Anonymous 8. July 2009, 02:02

hhh3h writes:

Ok well, if you don't accept upper case either, how about this (also VB.NET).

Print(ChrW(104) & ChrW(101) & ChrW(108) & ChrW(108) & ChrW(111) & " " & ChrW(119) & ChrW(111) & ChrW(114) & ChrW(108) & ChrW(100))

If you are just accepting one single line. If it has to be a full program, it is not possible in VB.NET because it would have to go inside this:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'The line
End Sub
End Class

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies