1.Java
Class Hello { void main (string[] args) {System.out.println ("Hello world!" ); }}
2.C
#include <stdio.h>int main (void) { printf ("Hello world! " ); return 0
3.c++
#include <stdio.h>int main (void) { printf ("Hello World ! " ); return 0
4.c#
using System; namespace hello{ class program { staticvoid Main (string [] args) { Console.WriteLine ("hello,world! " ); Console.readkey (); }}}
5.python
Print ' Hello world! '
6.JS
document.write ("Hello world!" ); </script></body>
7.PHP
PHP echo "Hello, world!" ;? ></body>
9.vb.net
Sub Main () Console.WriteLine ("Hello world! " ) End Sub
10.perl
# ! C:\Perl\binprint"Hello world! ";
11.OC
#import <Foundation/Foundation.h> int main () { NSLog (@ " Hello world! " ); return 0 ; }
12.Ruby
"Hello world! "
13.vb
Private Sub Form_Load () msbbox ("Hello world! " )End Sub
14.Delphi
procedure Tform1.button1click (sender:tobject); begin label1.caption:'Hello world! '; End;
15.Pascal
Program HelloWorld (output); begin writeln ('Hello, world!' end.
16.Go
package mainimport "fmt"func main() { fmt.Printf("hello world!")}
16.3
Print("hello,world!" )
18.SQL
SQL'Hello world!
19.HTML
< HTML > < Body > Hello world! </ Body > </ HTML >
20.Lua
Print " Hello world! "
Hello world in some of the languages I've seen