One of the first things beginners learn in programming is how to display:
"Hello, World!"
Although the output is the same, the syntax can be very different across programming languages.
๐ Python
print("Hello, World!")๐ JavaScript
console.log("Hello, World!");โ Java
```java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
โก C++
cpp
#include <iostream>
int main() {
std::cout << "Hello, World!";
return 0;
}
๐ต C
c
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}
๐ C#
csharp
using System;
class Program {
static void Main() {
Console.WriteLine("Hello, World!");
}
}
๐ฆ Rust
rust
fn main() {
println!("Hello, World!");
}
๐น Go
go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
๐ Ruby
ruby
puts "Hello, World!"
๐ฃ PHP
php
<?php
echo "Hello, World!";
?>
๐ Kotlin
kotlin
fun main() {
println("Hello, World!")
}
๐ฆ Swift
swift
print("Hello, World!")
`What is your favourite coding language?๐จโ๐ป
โค๏ธ Python
๐ JavaScript
๐ Java
๐ C++
๐ C#
๐ฏ Other