In a traditional programming ritual, I have created this Hello, World post! :)
// Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!);
}
}
// JavaScript
console.log('Hello, World!')
// Scala
object HelloWorld {
def main(args: Array[String]) = {
println("Hello, World!")
}
}
// C#
using System;
public class HeloWorld
{
public static void Main()
{
Console.WriteLine("Hello, World!");
}
}
# Python
print("Hello, World!")
// Go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
// Rust
fn main() {
println!("Hello World!");
}
// C++
#include <iostream>
int main() {
std::cout << "Hello, World!";
return 0;
}
// C
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
How many languages did you recognize from the above? That's all for now folks!