Difference between revisions of "Salutare lume!"
From linux360
(Added initial content) |
m (→ANSI C: Formatting fixes) |
||
Line 18: | Line 18: | ||
==ANSI C== | ==ANSI C== | ||
#include <stdio.h> | #include <stdio.h> | ||
− | + | ||
int main(void) { | int main(void) { | ||
printf("Hello, world!\n"); | printf("Hello, world!\n"); | ||
− | + | ||
return 0; | return 0; | ||
}; | }; |
Revision as of 12:49, 17 January 2006
Introducere
Am creeat acest articol din dorinta de a arata lumii diversitatea limbilor existente in informatica.
Ceea ce urmeaza sunt moduri de a spune Salutare, lume! in diverse limbaje de programare. Puteti adauga exemple noi cu conditia sa fie corecte programatic, sa fie tratate in varianta standard a limbajului folosit si sa ramana sortate in ordine alfabetica.
Urmeaza exemplele:
Bash
#!/bin/bash echo "Hello, world!" exit 0
BASIC
10 PRINT "Hello, world!" 20 STOP
ANSI C
#include <stdio.h> int main(void) { printf("Hello, world!\n"); return 0; };
Pascal
program HelloWorld; begin writeln('Hello, world!\n'); end.
PHP
<html> <body> <?php echo "Hello, world!"; ?> </body> </html>