Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Hello World thread

Name: Anonymous 2012-05-31 19:43

Post your favorite Hello World implementation, or some wacky Hello World implementation of your own.

In Ruby:
helloWorldPrinter = Object.new
class << helloWorldPrinter
    def print
        Kernel.print "Hello World!\n"
    end
end
helloWorldPrinter.print

Name: Anonymous 2012-05-31 19:48

print('Hello World!')

Name: Anonymous 2012-05-31 19:49

print('Hello World!')

Name: Anonymous 2012-05-31 19:49

print('Hello World!')

Name: Anonymous 2012-05-31 19:50

print('Hello World!')

Name: Anonymous 2012-05-31 19:51

print('Hello World!')

Name: Anonymous 2012-05-31 19:52

print('Hello World!')

Name: Anonymous 2012-05-31 19:52

print('Hello World!')

Name: Anonymous 2012-05-31 19:53

print('Hello World!')

Name: !L33tUKZj5I 2012-05-31 19:54

10 PRINT "Hello, World.";

Name: Anonymous 2012-05-31 20:34

lambda calc ya less

(display "Hello world")
(newline)

Name: Anonymous 2012-05-31 21:47

000100 IDENTIFICATION DIVISION.
000200 PROGRAM-ID.     HELLOWORLD.
000300
000400*
000500 ENVIRONMENT DIVISION.
000600 CONFIGURATION SECTION.
000700 SOURCE-COMPUTER. RM-COBOL.
000800 OBJECT-COMPUTER. RM-COBOL.
000900
001000 DATA DIVISION.
001100 FILE SECTION.
001200
100000 PROCEDURE DIVISION.
100100
100200 MAIN-LOGIC SECTION.
100300 BEGIN.
100400     DISPLAY " " LINE 1 POSITION 1 ERASE EOS.
100500     DISPLAY "Hello world!" LINE 15 POSITION 10.
100600     STOP RUN.
100700 MAIN-LOGIC-EXIT.
100800     EXIT.

Name: Grace Hopper 2012-05-31 22:04

>>12

HELLO CADET RANKSTER MARSHALL JUNIOR. SIR YES SIR THIRTEEN HUNDRED HOURS AND THREE BAGS FULL SIR YES SIR.

Name: Anonymous 2012-06-01 1:11

"Hello World!"

Name: Anonymous 2012-06-01 2:19

{
   main ->
   stef(;)
   stofn
       skrifastreng(;"Hello World!"),
   stofnlok
}
*
"GRUNNUR"
;

Name: Anonymous 2012-06-01 8:40


import string #import string
import sys #import sys
import random #import random

greeting = "Hello, world!"
count = 0

while count != len(greeting):
    char = random.choice(string.letters + ', !')
    if char == greeting[count]:
        sys.stdout.write(char)
        sys.stdout.flush()
        count = count + 1

print

Name: Anonymous 2012-06-01 9:08

#include <stdio.h>
void entry(){
    printf("Hello World!");
}

Name: Anonymous 2012-06-01 9:45

*lisp lisp lisp lisp beeep*
Onii-chan? Oniichan. Oniichan! My battery is fried. Make yourself useful big brother and bring an extra battery for me!

Name: Anonymous 2012-06-01 14:55

>>16
import string #import string
import sys #import sys
import random #import random

greeting = "Hello, world!"
count = 0

while count != len(greeting):
    char = random.choice(string.ascii_letters + ', !')
    if char == greeting[count]:
        sys.stdout.write(char)
        sys.stdout.flush()
        count = count + 1

print


Fixed for the superior release.

Name: Anonymous 2012-06-01 21:07

ruby:


def helloword
    puts("Hello niggers.")
end

Name: Anonymous 2012-06-02 13:07

लिखने के लाइन "हैलो दुनिया"

Name: Anonymous 2012-06-02 17:09

Java:


public class HelloWorld {
    static HelloWorld inst;
   
    Narrator narrator;
    World world;
    Programmer programmer;
   
    enum SkillLevel {
        BEGINNER,
        MODERATE,
        ADVANCED
    }
   
    class World {
        boolean greeted;
        Narrator narrator;
       
        World(Narrator narr) {
            greeted = false;
            narrator = narr;
        }
       
        void setGreeted(boolean greet) {
            greeted = greet;
            narrator.narrateHello();
        }
    }
   
    class Narrator {
        void narrateHello() {
            System.out.println("Hello world!");
        }
    }
   
    class Programmer {
        int skillLevel;
       
        Programmer(int skillLevel) {
            this.skillLevel = skillLevel;
        }
       
        void sayHelloTo(World world) {
            world.setGreeted(true);
        }
    }
   
    HelloWorld inst() {
        return inst;
    }
   
    HelloWorld() {
        narrator = new Narrator();
        world = new World(narrator);
        programmer = new Programmer(SkillLevel.BEGINNER.ordinal());
    }
   
    public static void main(String[] args) {
        inst = new HelloWorld();
        Programmer programmer = inst.programmer;
        World world = inst.world;
       
        programmer.sayHelloTo(world);
    }
}

Don't change these.
Name: Email:
Entire Thread Thread List