Listed below are example programs that print "hello world", written in the following languages:
[ C | C++ | D | Haskell | Lua | OCaml | PHP | Perl | Python | Ruby | Scheme | Tcl ]
pasted 23 minutes ago:
int main(void){ printf("%s/n","Hello World!"); return 0; }
view (4 lines, 1 line of output)
pasted 39 minutes ago:
#include int main() { printf("Hello World!"); return 0; }
view (6 lines, 1 line of output)
pasted 38 minutes ago:
#include using namespace std; int main() { std::ostream* fp; fp = &std::cout ; fp->flush(); *fp << "Hello world!" << std::endl; return 0; }
view (10 lines, 1 line of output)
pasted 1 hour ago:
#include using namespace std; int main() { cout << "Hello, World!" << endl; return EXIT_SUCCESS; }
view (7 lines, 1 line of output)
pasted on Dec 13:
void main() { printf("Hello World!/n"); }
view (3 lines, 1 line of output)
pasted on Dec 2:
void main() { printf("Hello World!/n"); }
view (3 lines, 1 line of output)
pasted yesterday:
module Main where main :: IO () main = putStrLn "Hello, World!/n"
view (3 lines, 2 lines of output)
pasted yesterday:
main=putStr"hello world"
view (1 line, 1 line of output)
pasted yesterday:
print("Hello world")
view (1 line, 1 line of output)
pasted on Dec 19:
print "hello world"
view (1 line, 1 line of output)
pasted yesterday:
print_string"hello world"
view (1 line, 1 line of output)
pasted yesterday:
(fun x -> (fun x -> fun y -> fun z -> x (y z)) print_string (fun x -> x ^ "!") x) "Hello world"
view (1 line, 1 line of output)
pasted yesterday:
view (3 lines, 1 line of output)
pasted yesterday:
view (3 lines, 1 line of output)
pasted yesterday:
print "hello world/n";
view (1 line, 1 line of output)
pasted yesterday:
print 'Hello world';
view (1 line, 1 line of output)
pasted 55 minutes ago:
print("Hello World")
view (1 line, 1 line of output)
pasted yesterday:
print"hello world"
view (1 line, 1 line of output)
pasted on Dec 16:
puts "Hello World"
view (1 line, 1 line of output)
pasted on Dec 15:
print "Hello world!/n"
view (1 line, 1 line of output)
pasted yesterday:
(eval (quote (eval (quote (eval (quote (eval (quote (eval (quote (eval (quote (display "Hello world!")))))))))))))
view (1 line, 1 line of output)
pasted yesterday:
(eval (quote (eval (quote (eval (quote (eval (quote (eval (quote (eval (quote (display "Hello world!")))))))))))))
view (1 line, 1 line of output)
pasted on Dec 10:
puts -nonewline "Hello world!"
view (1 line, 1 line of output)
pasted on Dec 6:
puts -nonewline "Hello world!"
view (1 line, 1 line of output)