c
#include <stdio.h>
int main( void ){
printf( "Hello World" );
return 0;
}
java
public static void main(String[] args) {
System.out.println("Hello World");
}
c++
#include <iostream>
int main()
{
using namespace std;
cout << "Hello World";
return 0;
}
python
#!/usr/bin/env python
print "hello world"
javascript
<html>
<body>
<script type="text/javascript">
alert("Hello World");
</script>
</body>
</html>
scala
object HelloWorld{
def main(args : Array[String]){
println("Hello World")
}
}
php
<?php
echo "Hello world";
?>
c#
using System;
namespace HelloWorld{
class HelloWorld {
static void Main(string[] args){
Console.WriteLine("Hello World");
Console.ReadKey();
}
}
}
SQL
declare
str varchar2(15):='Hello Wrold';
begin
dbms_output.put_line(str);
end;
matlab
function [ output_args ] = Untitled( input_args )
disp('Hello World')
end
R
str <- "Hello World"
print (str)
GO
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
嗯吧,暫時就這些。。。