Hi I want to show you "hello world" in 16 programming languages
1 C++
int main() {
std::cout << "Hello world!\n";
}
2 Java
public class Main {
public static void main(String[] args) {
system.out.println("Hello world!");
}
}
3 Python
print "Hello world!"
4 Python3
print("Hello world!")
5 C
#include<stdio.h>
int main(void) {
puts("Hello World!");
return 0;
}
6 Csharp
class HelloWorld {
static void Main() {
System.Console.WriteLine("Hello World!");
}
}
7 Javascript
(function main() {
console.log('Hello World!');
}());
8 TypeScript
(function main() {
console.log('Hello World!');
}());
9 Ruby
#!/usr/bin/env ruby
puts "Hello World!"
10 Swift
print("Hello world!")
11 Go
func main() {
fmt.Printf("Hello, World!")
}
12 Bash
echo 'Hello, world'
13 Scala
object Main extends App {
println("Hello, World!")
}
14 Kotlin
fun main(args: Array<String>) {
println("Hello, World!")
}
15 Rust
fn main() {
println!("Hello, World!");
}
16 PHP
echo "Hello world";
Be happy! :)
Top comments (3)
Leverage your
hello world
todata structure
in 18 languages. This article series is consist about 30 articles, and still counting.🕷 epsi.bitbucket.io/lambda/2020/11/0...
You missed Brainfuck and Shakespeare ;)
Is it a challenge? So, russian reposte: youtube.com/watch?v=IMLwb8DIksk . There is 20 Hello World.