diff --git a/awk.awk b/awk.awk new file mode 100644 index 00000000..88c8f38c --- /dev/null +++ b/awk.awk @@ -0,0 +1,2 @@ +# awk -f awk.awk +BEGIN { print "Hello World" } diff --git a/c++.cpp b/c++.cpp index dc84dd4a..da7c1e33 100644 --- a/c++.cpp +++ b/c++.cpp @@ -2,5 +2,5 @@ using namespace std; int main(){ - cout << "Hello World\n"; + cout << "Hello World" << endl; } diff --git a/c.c b/c.c index 7cfe76d7..36465c8f 100644 --- a/c.c +++ b/c.c @@ -1,6 +1,6 @@ #include -int main() { +int main(void) { printf("Hello World\n"); return 0; } diff --git a/clisp.lisp b/clisp.lisp new file mode 100644 index 00000000..6002ba7c --- /dev/null +++ b/clisp.lisp @@ -0,0 +1 @@ +(write-line "Hello World") \ No newline at end of file diff --git a/csharp.cs b/csharp.cs new file mode 100644 index 00000000..23ceef42 --- /dev/null +++ b/csharp.cs @@ -0,0 +1,5 @@ +class HelloWorld { + static void Main() { + System.Console.WriteLine("Hello World"); + } +} \ No newline at end of file diff --git a/delphi.pas b/delphi.pas new file mode 100644 index 00000000..01bb7a8e --- /dev/null +++ b/delphi.pas @@ -0,0 +1,6 @@ +program HelloWorld; +{$APPTYPE CONSOLE} + +begin + WriteLn('Hello World'); +end. \ No newline at end of file diff --git a/fortran.f90 b/fortran.f90 new file mode 100644 index 00000000..e7c5fc28 --- /dev/null +++ b/fortran.f90 @@ -0,0 +1,3 @@ +program helloworld +print *,'Hello World' +end program helloworld \ No newline at end of file diff --git a/haskell.hs b/haskell.hs new file mode 100644 index 00000000..dea0b27d --- /dev/null +++ b/haskell.hs @@ -0,0 +1,4 @@ +module Main + where + +main=putStrLn "Hello, World!" \ No newline at end of file diff --git a/hq9+.h b/hq9+.h new file mode 100644 index 00000000..8ac2eb50 --- /dev/null +++ b/hq9+.h @@ -0,0 +1 @@ +H \ No newline at end of file diff --git a/linux-x86.nasm b/linux-x86.nasm new file mode 100644 index 00000000..0294017a --- /dev/null +++ b/linux-x86.nasm @@ -0,0 +1,18 @@ +# nasm linux-x86.nasm -o linux-x86.o -f elf && ld linux-x86.o -m elf_i386 -o linux-x86 + +section .data +msg db "Hello World", 0xa +len equ $ - msg + +section .text +global _start +_start: + mov eax, 4 + mov ebx, 1 + mov ecx, msg + mov edx, len + int 0x80 + + mov eax, 1 + mov ebx, 0 + int 0x80 diff --git a/lua.lua b/lua.lua new file mode 100644 index 00000000..8e235769 --- /dev/null +++ b/lua.lua @@ -0,0 +1 @@ +print("Hello World") \ No newline at end of file diff --git a/ocaml.ml b/ocaml.ml new file mode 100644 index 00000000..93dbf378 --- /dev/null +++ b/ocaml.ml @@ -0,0 +1 @@ +print_string "Hello World\n" \ No newline at end of file