-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHello.py
79 lines (53 loc) · 807 Bytes
/
Hello.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Python and Swift:
print("Hello, world!")
Java:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
JavaScript:
console.log("Hello, world!");
C:
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
C++:
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}
Ruby:
puts "Hello, world!"
Go:
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
C#:
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello, world!");
}
}
PHP:
<?php
echo "Hello, world!";
?>
R:
cat("Hello, world!\n")
Kotlin
fun main() {
println("Hello, world!")
}
Rust:
fn main() {
println!("Hello, world!");
}