Skip to content

Commit 43ebecc

Browse files
author
Martin Krulis
committed
Adding bunch of hello world source codes in various languages.
1 parent 4026123 commit 43ebecc

16 files changed

+65
-0
lines changed

hello-world/HelloWorld.java

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class HelloWorld {
2+
public static void main(String[] args) {
3+
System.out.println("Hello World");
4+
}
5+
}

hello-world/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A bunch of typical "Hello World" applications in various languages.
2+
These micro apps may be used to test whether individual runtime environments are
3+
configured properly.

hello-world/data.out

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World

hello-world/hello-world.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <stdio.h>
2+
3+
int main(int argc, char* argv[])
4+
{
5+
printf("Hello World\n");
6+
return 0;
7+
}

hello-world/hello-world.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#include <iostream>
2+
3+
int main(int argc, char* argv[])
4+
{
5+
std::cout << "Hello World" << std::endl;
6+
return 0;
7+
}

hello-world/hello-world.cs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace HelloWorld
2+
{
3+
class Hello {
4+
static void Main(string[] args)
5+
{
6+
System.Console.WriteLine("Hello World");
7+
}
8+
}
9+
}

hello-world/hello-world.go

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package main
2+
3+
4+
5+
import "fmt"
6+
7+
8+
9+
func main() {
10+
fmt.Println("Hello World")
11+
}

hello-world/hello-world.groovy

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
println "Hello World"

hello-world/hello-world.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
console.log('Hello World');
2+

hello-world/hello-world.kt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fun main() {
2+
println("Hello World")
3+
}

hello-world/hello-world.pas

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
begin
2+
WriteLn('Hello World');
3+
end.

hello-world/hello-world.php

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
echo "Hello World\n";

hello-world/hello-world.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print('Hello World')

hello-world/hello-world.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello World");
3+
}

hello-world/hello-world.scala

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
object HelloWorld {
2+
def main(args: Array[String]): Unit = {
3+
println("Hello World")
4+
}
5+
}

hello-world/hello-world.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
echo "Hello World"

0 commit comments

Comments
 (0)