Python
1def hello_world():
2 print("Hello, world!")
C
1#include <stdio.h>
2
3int main() {
4 printf("Hello, world!\n");
5 return 0;
6}
C++
1#include <iostream>
2
3int main() {
4 std::cout << "Hello, world!" << std::endl;
5 return 0;
6}
Go
1package main
2
3import "fmt"
4
5func main() {
6 fmt.Println("Hello, world!")
7}
JavaScript
1console.log("Hello, world!");
Rust
1fn main() {
2 println!("Hello, world!");
3}