Hello world in some of the languages I've seen

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.