Hello, World! (Рейтинг: +9)

Печать RSS
На Бейсике:
PRINT "Hello, World!"

На Ruby:
puts 'Hello, World!'

На Питоне:
print("Hello, World!")

На AWK:
BEGIN { print "Hello, world!" }

На Паскале:
program HelloWorld;
begin
WriteLn('Hello, World!');
end.

На C:
#include <stdio.h>

int main()
{
printf("Hello, World!\n");
}

На C++:
#include <iostream>
using namespace std;

int main()
{
cout << "Hello, World!\n";
}

На C#:
class Hello
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}

На 1С:
Сообщить("Привет, Мир!");

На Java:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}

На HTML:
<html><head>
<title>Hello, world!</title>
</head>
<body>Hello, world!</body>
</html>

На JavaScript:
document.write("Hello, world!");

На SQL:
SELECT 'Hello, World!'

На PHP:
<?php
echo "Hello, world!";
?>

На ASP:
<%
Response.Write("Hello World!")
%>

На ColdFusion:
<cfset flash.result = "Hello, world!">

На XUL:
<?xml-stylesheet href="chrome://global/skin" type="text/css" ?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
align="center" pack="center" flex="1">
<description>Hello, world!</description>
</window>

На Perl:
#!/usr/bin/perl
print "Hello, World!\n";

На Bash:
#!/usr/bin/bash
echo "Hello, world!"

На MS-DOS:
echo off
cls
echo Hello, world!

На Прологе:
goal :-
write ("Hello, World!").

На Lisp:
(PRINT "Hello, world!")

На PL/I:
Test: proc options(main) reorder;
put skip edit('Hello, world!') (a);
end Test;

На Forth:
." Hello, world!" CR

На LaTeX:
\documentclass{article}
\begin{document}
Hello, world!
\end{document}

На TeX:
Hello world
\bye

На Фортране:
PROGRAM HELLO
WRITE(UNIT=*, FMT=*) 'Hello World'
END

На Eiffel:
class HELLO_WORLD
feature
print_hello is
-- Print "Hello, World!"
do
print ("Hello, World!")
end
end

На Seed7:
$ include "seed7_05.s7i";

const proc: main is func
begin
writeln("Zdravo svete!");
end func;

На COBOL:
identification division.
program-id. hello-world.
procedure division.
display "Hello, world!"
stop run.

На Ada:
with Ada.Text_Io;

procedure Hello is
begin
Ada.Text_Io.Put_Line("Hello world!");
end Hello;

На Haskell:
import qualified Data.ByteString as BS
import System.IO
message :: [[Char]]
message = [ 'H':'e':'l':'l':'o':',':[]
, 'w':'o':'r':'l':'d':'!':[] ]
putHelloWorld :: [Char] -> IO()
putHelloWorld (x:xs) =
Prelude.putChar(x) >> putHelloWorld xs
putHelloWorld [] = Prelude.putChar('\n')
main :: IO ()
main =
hSetBuffering stdout NoBuffering >> hSetBuffering stdin LineBuffering >> putHelloWorld(message')
where
message' = let f = (++) . (++ " ")
f' = foldl1 f
in f' message

На BrainFuck:
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

На Whitespace:

На Ассемблере:
.model tiny
.code
org 100h

Start:
mov ah, 9
mov dx, offset msg
int 21h

mov ax, 4C00H
int 21h

msg db 'Hello, world$'
end Start

Updated 10.09.09
На Beatnik:
Baa, badassed areas!
Jarheads' arses
queasy nude adverbs!
Dare address abase adder? *bares baser dadas* HA!
Equalize, add bezique, bra emblaze.
He (quezal), aeons liable. Label lilac "bulla," ocean sauce!
Ends, addends,
duodena sounded amends.

На Groovy:
println "Hello, World"

На AAAAAAAAAAAAAA!!!!
AA AAA AA AA, AAA, AAA, AA A AAA, AA A AA A AA A AAA, AA A AA A!
AA AAA AA A, AAA AAAAA A AAAA, AAA!
AA AAAA AA! AAA A AAA AAAA! AAA A AA AAAA AAA, AA A, AAA AAA, AA A AA A AA A,
AAA AAA, AA A AA A! AAAA A AAA!

На .yacuabll:
{.#,#H#E#L#}.#,#L#O# #b.#,#W#O#b.#,#R#L#:.#}.#,#D# #T#H#I#}.#,#S# #F#I
##}.#,######}.#,# # # ###
}.#,#
#
#
#
#
:
.
#
}
.
# THIS SPACE FOR RENT
,
#
#
#
}
.
#
,
#
#
#
#
:.#:.#}.#,###WORK:.#{.##,####b.##,##b.##,####:.##
b.##,###>.##,####>.##,####>.##,#:.##:.#}.#,#AS##:.#>.#,######:.#>.#,####>.#,
####
:.# YOU THING^HK IT DOES

На ///:
/ world! world!/Hello,/ world! world! world!

На Argh!:
j world
lppppppPPPPPPsrfj
hello, * j
qPh

На DateFuck:
0:What do you want to say?
1:Hello World!
2:Hello Sailor!
0E xit
1:Hello World!
1E xit
2:Hello Sailor!
2E xit

На Full 0:
{6}[(a0)(?H)]{3}[a0]{2}[(a0)(?e)]{3}[a0]
{2}[(a0)(?l)]{3}[a0]~{1}[a0]~{4}[(a0)(?o)]
{3}[a0]{2}[(a0)(?,)]{3}[a0]{2}[(a0)(? )]
{3}[a0]{2}[(a0)(?w)]{3}[a0]{2}[(a0)(?o)]
{3}[a0]{2}[(a0)(?r)]{3}[a0]{2}[(a0)(?l)]
{3}[a0]{2}[(a0)(?d)]{3}[a0]{2}[(a0)(?!)]
{3}[a0]

На LOLA:
:H,:e,:l,:l,:o,:',:_,:w,:o,:r,:l,:d,:!,:%,:\\b,\\a,,,,,,,,,,,,,,,

+\\\cb,ba,,
*\\ba+,,\\a,
:\\\a\c,c,

H*6,^,
e+d,
l8+,d,
o3+,l,
'_+,^,
w8+,o,
r+^,+,e,
d2%,
_52,
!+_,

2\\bba,,
3+2,
422,
5+4,
6*2,3,
832,
%*2,5,
^*2,6,

На hanoilove:
,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'......'..,'...:..,...'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'.....,...'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'.....,...'...,.;'...,.;'...,.;'.....,..
.'...,.;'....,.'...,.'...,.'...,.'...,...`.'......,!...;...,...'...,.;'...,.;'....,'"'.....,...'...,.;'....,'"'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'....,'"'....,'"'...,.;'...,.;'...,.;'....,'"'.....,...'...,.;'...,.;'....,'"'....,.'...,.'..,.;'...,.;'...,.
;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'...,.;'....,'"'.....,...'....,'"'...,.;'...,.;'...,.;'....,'"'....,...`.'....,...`.'....,...`.'....,...`.'....,...`.'....,...`.'....,'"'....,...`.'....,...`.'....,...`.'....,...`.'....,..
.`.'....,...`.'....,...`.'....,...`.'....,'"'.....,...'...,.;'....,'"'.....,...'....,'"'...

На Omgrofl:
w00t a Hello, World! program by poiuy_qwert
lol iz 72
rofl lol
lol iz 101
rofl lol
lol iz 108
rofl lol
rofl lol
lool iz 111
rofl lool
loool iz 44
rofl loool
loool iz 32
rofl loool
loool iz 87
rofl loool
rofl lool
lool iz 114
rofl lool
rofl lol
lol iz 100
rofl lol
lol iz 33
rofl lol
stfu

На Optimism:
00,48,FF,Move 72 ("H") into 00
FF,00,02,Print 00
00,21,FF,Add 33 to 72 to make 105 ("i")
FF,00,04,Print 00
00,B8,FF,Add 184 to 105 to make 289. 289 % 256 = 33 ("!")
FF,00,07,Print 00

На Qwertycode:
BA(72)B.
BA(101)B.
BA(108)#B.#(2)
BA(111)B.
BA(32)B.
BA(87)B.
BA(111)B.
BA(114)B.
BA(108)B.
BA(100)B.
BA(33)B.

На SADOL:
!",212Hello world!

На Skull:
:ASC:
{0[+72]}
{1[+101]}
{2[+108]}
{3[+111]}
{4[+32]}
{5[+87]}
{6[+114]}
{7[+100]}
{8[+33]}
{9[+10]}
|0| // H
|1| // e
|2| // l
|2| // l
|3| // o
|4| //
|5| // W
|3| // o
|6| // r
|2| // l
|7| // d
|8| // !
|9| // nl

На Strelnokoff:
REM HELLO WORLD IN STRELNOKOFF
REM CHRIS PRESSEY MARCH 24 2001
X = (X / X) * X + (X = 0) * (T = 0) * (PRINT CHAR 'H' - 'H' + 1)
X = (X / X) * X + (X = 0) * (T = 1) * (PRINT CHAR 'e' - 'e' + 2)
X = (X / X) * X + (X = 0) * (T = 2) * (PRINT CHAR 'l' - 'l' + 3)
X = (X / X) * X + (X = 0) * (T = 3) * (PRINT CHAR 'l' - 'l' + 4)
X = (X / X) * X + (X = 0) * (T = 4) * (PRINT CHAR 'o' - 'o' + 5)
X = (X / X) * X + (X = 0) * (T = 5) * (PRINT CHAR ',' - ',' + 6)
X = (X / X) * X + (X = 0) * (T = 6) * (PRINT CHAR ' ' - ' ' + 7)
X = (X / X) * X + (X = 0) * (T = 7) * (PRINT CHAR 'w' - 'w' + 8)
X = (X / X) * X + (X = 0) * (T = 8) * (PRINT CHAR 'o' - 'o' + 9)
X = (X / X) * X + (X = 0) * (T = 9) * (PRINT CHAR 'r' - 'r' + 10)
X = (X / X) * X + (X = 0) * (T = 10) * (PRINT CHAR 'l' - 'l' + 11)
X = (X / X) * X + (X = 0) * (T = 11) * (PRINT CHAR 'd' - 'd' + 12)
X = (X / X) * X + (X = 0) * (T = 12) * (PRINT CHAR '!' - '!' + 13)
X = (T = X) * 0 + (X > T) * X REM RESET FLAG
T = (X / X) * X + (X = 0) * T REM INCREMENT TICK

На Vrejvax:
+<+++<++<++<<<<<.+<++<+++<++++<++<<<<<<<<.+<++<++<++<+++<++<++<<<<<<<<..+<++<++<++<++<++<+++ <<<<<<<<.+<+++<++<+++++<<<<<<<<.+<+++++<++++<<<<<<<<.+<++<++++<<<<<.+<++<++<+++++<++<<<<<<<< .+<++<++<++++++<+<<<<<<<<.+<++<++<++<+++<++<++<+<<<<<<<<.+<+++<++<++<+++<++<<<<<<<<.

На ZOMBIE:
HelloWorld is a zombie
summon
task SayHello
say "Hello World!"
animate
animate
Добавил:
Рейтинг: +9
Просмотры: 1171
Комментарии (11) »