PROGRAM HELLO
DO 10, I=1,10
PRINT *,'Hello World'
10 CONTINUE
STOP
END
#include <iostream>
int main()
{
std::cout << "Hello, world!\n";
}
user tell "Hello, World".
$mode ascii
while (1) drop "hello world"
10 REM HELLO.BAS
20 POKE 764,255
30 PRINT "Hello World"
40 IF PEEK(764)=255 THEN GOTO 30
print "Hello World\n"
OUTPUT = 'Hello World!'
END
000100 <>
000200 WRITE 'HELLO WORLD'
001000 STOP
{:Application ("/startup" 0)
:Items
(
{:Link 1
:EventSource 0
:EventType IsRunning
:LinkEffect
(
:TransitionTo (("/helloWorld.mheg" 0))
)
}
)
}
{:Scene ("/helloWorld.mheg" 0)
:Items
(
//Description: Scrolling hello world program written in mheg5 to british
standard for digital tv
//-------------------------------OnStartUp Link-------------------------------
{:Link 1
:EventSource 0
:EventType IsRunning
:LinkEffect
(
:settimer(0 1 100)
)
}
//-------------------------------Body-------------------------------
{:Text 2000
:InitiallyActive True
:CHook 10
:OrigContent "Hello World"
:origboxsize 115 50
:origposition 310 250
:FontAttributes "plain.24.22.10"
:TextColour '=ff=ff=ff=00'
:hjustification start
:vjustification centre
:lineorientation horizontal
:startcorner upper-left
:textwrapping false
}
{:Link 2001
:InitiallyActive True
:EventSource 0
:EventType TimerFired
:EventData 1
:LinkEffect
(
:unlockscreen (("~/startup" 0 ))
:add(2002 2)
:testvariable( 2002 6 :ginteger 720)
)
}
{:IntegerVar 2002
:InitiallyActive True
:OrigValue 310
}
{:Link 2003
:InitiallyActive True
:EventSource 2002
:EventType TestEvent
:EventData True
:LinkEffect
(
:lockscreen(("~/startup" 0))
:setvariable( 2002 :ginteger -100)
:setposition( 2000 :indirectref 2002 250)
:settimer(0 1 100)
)
}
{:Link 2004
:InitiallyActive True
:EventSource 2002
:EventType TestEvent
:EventData false
:LinkEffect
(
:lockscreen(("~/startup" 0))
:setposition( 2000 :indirectref 2002 250)
:settimer(0 1 100)
)
}
//-------------------------------OnShutdown Link-------------------------------
{:Link 3
:EventSource 0
:EventType UserInput
:EventData 104
:LinkEffect
(
:Quit ( ( "/startup" 0 ) )
)
}
)
:InputEventReg 4
:SceneCS 720 576
}
</TITLE>
<SCRIPT>
document.write ("Hello, world!")
</SCRIPT>
class HelloWorld {
public static void main (String args[]) {
for (;;) {
System.out.print("Hello World ");
}
}
}