Merhaba dünya, naber la
Klasik bi başlangıç girdisi, ama iyidir..
Farklı programlama dillerinde "Hello World" lamaca :
STM R14,R12,12(R13)
LR R12,R15
USING HELLO,R12
LA R10,SAVEAREA
ST R13,4(R10)
ST R10,8(R13)
LR R13,R10
*
WTO 'HELLO WORLD',ROUTCDE=1
*
L R13,4(R13)
LM R14,R12,12(R13)
SR R15,R15
BCR B'1111',R14
*
SAVEAREA DS 18F
LTORG
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
END HELLO
BALR 12,0
USING *,12
*
WRTERM 'Hello World!'
*
SR 15,15
BR 14
*
END HELLO
SECTION .data
msg db "Hello, world!",0xa ;
len equ $ - msg
SECTION .text
global main
main:
mov eax,4 ; write system call
mov ebx,1 ; file (stdou)
mov ecx,msg ; string
mov edx,len ; strlen
int 0x80 ; call kernel
mov eax,1 ; exit system call
mov ebx,0
int 0x80 ; call kernel
.cstring
.align 2
msg:
.asciz "Hello world!\n"
len = . - msg
.text
.align 2
.globl _start
_start:
li r0,4
li r3,1
lis r4,ha16(msg)
ori r4,r4,lo16(msg)
li r5,len
sc
li r0,1
li r3,0
sc
procedure Hello_World is
begin
Text_IO.Put_Line("Hello World!");
end Hello_World;
PROGRAM-ID. HELLO.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MAIN SECTION.
DISPLAY "Hello World!"
STOP RUN.
WRITE (*,100)
STOP
100 FORMAT (' Hello World! ' /)
END
'COMMENT' Hello World in Algol 60;
OUTPUT(4,'(''('Hello World!')',/')')
'END'
(print "Hello World!")
)
USES
WinCRT;
BEGIN
InitWinCRT;
WriteLn('Hello World!');
ReadLn;
DoneWinCRT;
END.
extern a, b, c;
putchar (a); putchar (b); putchar (c); putchar ('!*n');
}
a 'hell' ;
b 'o, w' ;
c 'orld' ;
#include
int main(void)
{
puts("Hello World!");
return EXIT_SUCCESS;
}
Program Hello_World;
{$APPTYPE CONSOLE}
Begin
WriteLn('Hello World');
End.
#include
main()
{
cout << "Hello World!" << endl; return 0; }
10 REM Hello World in BASIC
20 PRINT "Hello World!"
Private Sub Form_Load()
Print "Hello World"
End Sub
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
<%@ page language='java' %>
<%="Hello World!" %>
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
print "Hello World!\n";
puts "Hello World!"
print "Hello World"
Farklı programlama dillerinde "Hello World" lamaca :
- IBM MAINFRAME BASIC ASSEMBLER LANGUAGE (BAL)
STM R14,R12,12(R13)
LR R12,R15
USING HELLO,R12
LA R10,SAVEAREA
ST R13,4(R10)
ST R10,8(R13)
LR R13,R10
*
WTO 'HELLO WORLD',ROUTCDE=1
*
L R13,4(R13)
LM R14,R12,12(R13)
SR R15,R15
BCR B'1111',R14
*
SAVEAREA DS 18F
LTORG
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
END HELLO
- ASSEMBLER-IBM-370
BALR 12,0
USING *,12
*
WRTERM 'Hello World!'
*
SR 15,15
BR 14
*
END HELLO
SECTION .data
msg db "Hello, world!",0xa ;
len equ $ - msg
SECTION .text
global main
main:
mov eax,4 ; write system call
mov ebx,1 ; file (stdou)
mov ecx,msg ; string
mov edx,len ; strlen
int 0x80 ; call kernel
mov eax,1 ; exit system call
mov ebx,0
int 0x80 ; call kernel
- ASSEMBLER-DARWIN-PPC
.cstring
.align 2
msg:
.asciz "Hello world!\n"
len = . - msg
.text
.align 2
.globl _start
_start:
li r0,4
li r3,1
lis r4,ha16(msg)
ori r4,r4,lo16(msg)
li r5,len
sc
li r0,1
li r3,0
sc
- ADA
procedure Hello_World is
begin
Text_IO.Put_Line("Hello World!");
end Hello_World;
- COBOL
PROGRAM-ID. HELLO.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MAIN SECTION.
DISPLAY "Hello World!"
STOP RUN.
- FORTRAN
WRITE (*,100)
STOP
100 FORMAT (' Hello World! ' /)
END
- ALGOL-60
'COMMENT' Hello World in Algol 60;
OUTPUT(4,'(''('Hello World!')',/')')
'END'
- LISP
(print "Hello World!")
)
- PASCAL-Windows
USES
WinCRT;
BEGIN
InitWinCRT;
WriteLn('Hello World!');
ReadLn;
DoneWinCRT;
END.
- B
extern a, b, c;
putchar (a); putchar (b); putchar (c); putchar ('!*n');
}
a 'hell' ;
b 'o, w' ;
c 'orld' ;
- C (ANSI)
#include
int main(void)
{
puts("Hello World!");
return EXIT_SUCCESS;
}
DELPHI
{$APPTYPE CONSOLE}
Begin
WriteLn('Hello World');
End.
C++
main()
{
cout << "Hello World!" << endl; return 0; }
BASIC
20 PRINT "Hello World!"
VISUAL BASIC 6
Print "Hello World"
End Sub
JAVA
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
JSP
<%="Hello World!" %>
C#
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
PERL
RUBY
PYTHON
İNSAN
Albanian | Pershëndetje Botë |
Arabic | أهلاً بالعالم (Ahlan bil 'Alam) |
Armenian | Բարե՛ւ, աշխարհ։ (barev ash'kharh) |
Azeri | Salam Dünya |
Czech | Ahoj Světe! |
Basque/Euskara | Kaixo mundua! |
Belarusian | (Pryvitan'ne, Swet!) |
Bemba | Shani Mwechalo! |
Bengali | Shagatam Prithivi! |
Bosnian | Zdravo Svijete! |
Bulgarian | (Zdrav'ei svi'at) |
Catalan | Hola món! |
Chinese | (ni hao shi jie) |
Croatian | Bok Svijete! |
Danish | Hej, Verden! |
Dutch | Hallo, wereld! |
English | Hello World! |
Esperanto | Saluton mondo! |
Estonian | Tere maailm! |
Finnish | Hei maailma! |
French | Salut le Monde! |
Frisian | Hallo, wrâld! |
Galician | Ola mundo! |
German | Hallo Welt! |
Greek | Γεια σου κόσμε! (Geia soy kosme) |
Hawaiian | Aloha Honua |
Hebrew | (Shalom Olam) |
Hindi | (namaste duniya) |
Hmong | Nyob zoo ntiaj teb. |
Hungarian | Helló világ! |
Icelandic | Halló heimur! |
Indonesian | Halo Dunia! |
Irish | Dia dhaoibh, a dhomhain! |
Italian | Ciao Mondo! |
Japanese | (konnichiwa sekai) |
Kannada | (namaste prapancha) |
Kiswahili | Habari dunia! |
Kikuyu | Niatia thi! |
Korean | (annyeong, sesangah) |
Latin | AVE MVNDE (ave munde) |
Latvian | Sveika, Pasaule! |
Lithuanian | Sveikas, Pasauli |
Luxembourgish | Moien Welt! |
Malagasy | Manao ahoana ry tany! |
Malayalam | Namaskaram, lokame |
Maltese | Merhba lid-dinja |
Norwegian | Hallo verden! |
Persian | !سلام دنیا (Salaam Donyaa!) |
Polish | Witaj, Swiecie! |
Portuguese | Olá, mundo! |
Romanian | Salut lume! |
Russian | (Zdra'vstvuj mi'r) |
Serbian | Zdravo Svete! |
Slovak | Ahoj, svet! |
Slovenian | Pozdravljen svet! |
Spanish | ¡Hola mundo! |
Swedish | Hejsan världen! |
Tagalog | Kamusta mundo! |
Tamil | (Vanakkam Ulake!) |
Turkish | Merhaba Dünya! |
Ukrainian | (Pryvi't svi'te) |
Vietnamese | Xin chào thế giới |
Welsh | S'mae byd! |