Вверх ↑
Ответов: 1731
Рейтинг: 68
#1: 2012-01-14 15:24:06 ЛС | профиль | цитата
Чисто для флуда (примеры HelloWorld)


На языке Си:

#cpp
#include <stdio.h>

main()
{
printf("hello, world\n");
}

По стандарту ANSI C:

#cpp

#include <stdio.h>

int main(void)
{
printf("Hello, world\n");
return 0;
}

На Си++

#cpp

#include <iostream>

int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}

На языке Паскаль:

#pas

program MyProgram;
begin
WriteLn ('Hello, world!');
end.

На языке Python 2.x:

print "Hello, world!"

На языке Common Lisp:

(format t "Hello, world!~%")

На эзотерическом языке HQ9+:
H

На TASM

.MODEL TINY
CODE SEGMENT
ASSUME CS:CODE, DS:CODE
ORG 100h
START:
mov ah,9
mov dx,OFFSET Msg
int 21h
int 20h
Msg DB 'Hello World',13,10,'#'
CODE ENDS
END START

На VBS:

#bas
MsbBox "Hello World!"

На Java:
class HelloWorld {

public static void main (String args []) {

System. out. println ("Hello World");

}

}
карма: 1

0