diff --git a/C.c b/C.c new file mode 100644 index 00000000..ffe764f3 --- /dev/null +++ b/C.c @@ -0,0 +1,8 @@ +#include + +int main(){ + + printf("Hello World\n"); + + return 0; +} diff --git a/CONTRIBUTING.MD b/CONTRIBUTING.MD new file mode 100644 index 00000000..2399d53e --- /dev/null +++ b/CONTRIBUTING.MD @@ -0,0 +1,10 @@ +# Contributing +## This is a collection of hello world programs +## How to contribute +- Create a pull request that adds a new `Hello World` program. +- The new file must be named `.` +- The pull request must be named `Add Hello World` +- Remember to reference issue #1 +- Only one new Hello World per pull request +- Don't add existing Hello World programs in the repo. You can see them in #1 +## I will merge your pull request on condition that it's valid. diff --git a/Delphi.dpr b/Delphi.dpr new file mode 100644 index 00000000..4f00367a --- /dev/null +++ b/Delphi.dpr @@ -0,0 +1,8 @@ +program Delphi; +{$APPTYPE CONSOLE} +uses sysutils; + +begin + Writeln('Hello World'); + ReadLn; +end. \ No newline at end of file diff --git a/Groovy.gsh b/Groovy.gsh new file mode 100644 index 00000000..95108686 --- /dev/null +++ b/Groovy.gsh @@ -0,0 +1 @@ +println "Hello World" diff --git a/Java.java b/Java.java new file mode 100644 index 00000000..b23c3840 --- /dev/null +++ b/Java.java @@ -0,0 +1,7 @@ +class Java { + + public static void main(String[] args) { + System.out.println("Hello World"); + } + +} \ No newline at end of file diff --git a/README.md b/README.md index 09e5811e..11cdc5a6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # hello-worlds -Collection of Hello World programs +Collection of Hello World programs. +### Before you contribute, please see [CONTRIBUTION GUIDE](https://github.com/knightking100/hello-worlds/blob/master/CONTRIBUTING.MD) diff --git a/Ruby.rb b/Ruby.rb new file mode 100644 index 00000000..b85a0422 --- /dev/null +++ b/Ruby.rb @@ -0,0 +1 @@ +puts "Hello World" diff --git a/bash.sh b/bash.sh new file mode 100644 index 00000000..b5b6a5a4 --- /dev/null +++ b/bash.sh @@ -0,0 +1 @@ +echo "Hello World" diff --git a/elixir.ex b/elixir.ex new file mode 100644 index 00000000..4225d9db --- /dev/null +++ b/elixir.ex @@ -0,0 +1 @@ +IO.puts "Hello World" diff --git a/lua.lua b/lua.lua new file mode 100644 index 00000000..ad35e5ae --- /dev/null +++ b/lua.lua @@ -0,0 +1 @@ +print("Hello World") diff --git a/python.py b/python.py new file mode 100644 index 00000000..ad35e5ae --- /dev/null +++ b/python.py @@ -0,0 +1 @@ +print("Hello World") diff --git a/typescript.ts b/typescript.ts new file mode 100644 index 00000000..accefceb --- /dev/null +++ b/typescript.ts @@ -0,0 +1 @@ +console.log("Hello World"); diff --git a/zsh.sh b/zsh.sh new file mode 100644 index 00000000..7b2cc618 --- /dev/null +++ b/zsh.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env zsh +echo "Hello World"