![](/img/icon_plus.gif)
На языке Си:
#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.
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
#bas
MsbBox "Hello World!"
На Java:
class HelloWorld {
public static void main (String args []) {
System. out. println ("Hello World");
}
}