jookyboi of Team Cacher
10/6/2019 - 10:43 PM

Hello World in 10 languages

This is a demonstration of the ability of the Cacher Run Server (https://github.com/CacherApp/cacher-run-server) to execute different languages through your machine's shell. Save this snippet to your library, then click the "Run" tab next to each snippet file to execute its contents.

# Python: Install via https://www.python.org/downloads
print("Hello World")
// Node: Install via https://nodejs.org
console.log('Hello World');
# Ruby: Install via https://www.ruby-lang.org/en/downloads
puts "Hello World"
// Java: Install via https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
public class HelloWorld {
    public static void main(String[] args) { 
        System.out.println("Hello, World");
    }
}
// Go: Install via https://golang.org/dl
package main
import "fmt"

func main() {
    fmt.Println("Hello World")
}
// C++
#include <iostream>

int main()
{
    std::cout << "Hello world!" << std::endl;
}
# Bash
echo "Hello World"
# Powershell: Install via https://github.com/PowerShell/PowerShell
Write-Host "Hello World!"
// Swift
print("Hello World")
// PHP: Install via http://php.net/manual/en/install.php
<?php
 echo "Hello, world!";
?>