Hello World ππ
Let's go through the "Hello World" syntax in 10 languages π±βπ».
Feel free to comment βοΈ your first π₯ "Hello World" language.
1. Java
class Main {
public static void main(String[] args){
System.out.println("Hello World");
}
}
2. C
#include<stdio.h>
int main(){
printf("Hello World");
return 0;
}
3. C++
#include<iostream>
int main (){
std::cout << "Hello World";
return 0;
}
4. C#
public class Hello{
public static void Main(String[] args){
System.Console.WriteLine("Hello World");
}
}
5. Python
print("Hello World")
6. JS
console.log("Hello World");
alert("Hello World");
document.write("Hello World");
7. GO
package main
import "fmt"
func main(){
fmt.Println("Hello World")
}
8. Kotlin
func main(){
println("Hello World")
}
9. PHP
<?php
echo "Hello World";
?>
10. Swift
import Swift
print("Hello World")
Top comments (15)
Rust
x86 asm (DOS .com executable)
x86 asm (Linux compatible)
AWK
and last, not least:
CSS
Bash
Hello ! Cool post to learn a little more about syntax of others languages with an example! ππΌ
Don't hesitate to put colors on your
codeblock
like this example for have to have a better understanding of your code πBrainfuck:
en.wikipedia.org/wiki/Brainfuck
ChatGPT
This reply makes me happy while making my blood boil.
Ruby
Scheme
Nice presentation :-)
You could be interested by Rosetta Code
Regards
Groovy: