11111
#!/bin/bash
echo "Hello World !"
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!" << endl;
return 0;
}
Console.WriteLine("Hello World!");
Console.ReadKey();
h1 {margin : 10px 0px 15px 5px;}
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
11111erlang
[{moscow, {c, -10}}, {cape_town, {f, 70}}, {stockholm, {c, -4}},
{paris, {f, 28}}, {london, {f, 36}}]
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, world!")
}
}
clojure
(ns clojure.examples.hello
(:gen-class))
(defn hello-world []
(println "Hello World"))
(hello-world)
cobol
IF [condition] THEN
[COBOL statements]
ELSE
[COBOL statements]
END-IF.
coffeescript
# for(i = 1; i<= 10; i++)
x for x in [1..10]
# => [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
commonlisp
(format t "你好, 世界!")
html
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
r
repeat {
commands
if(condition) {
break
}
}
haskell
fac :: Integer -> Integer
fac 0 = 1
fac n | n > 0 = n * fac (n-1)
lua
array = {"Lua", "Tutorial"}
for i= 0, 2 do
print(array[i])
end
groovy
def methodName() {
//Method code
}
puppet
if CONDITION {
statement
……
}
typescript
var txt = new String("string");
或者更简单方式:
var txt = "string"
xml
<p>This is a paragraph</p>
<p>This is another paragraph</p>
111
CL-USER> (print "hello,world!")
"hello,world!"
"hello,world!"
CL-USER> (format t "你好, 世界!")
你好, 世界!
NIL
CL-USER>