不同编程语言实现HelloWorld程序

C

#include <stdio.h>

int main()
{
      printf("Hello World!");
      return 0;
}

C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HelloWorld
{
      class Program
      {
            static void Main(string[] args)
            {
                  Console.WriteLine("Hello World!");
            }
      }
}

C++

#include <iostream>

int main()
{
      std::cout << "Hello World!" << std::endl;
      return 0;
}

HTML

<!doctype html>
<html>
      <head>
            <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
            <title>Hello World!</title>
      </head>
      <body>
            <h1>Hello World!</h1>
      </body>
</html>

Java

class HelloWorld{
    public static void main(String[] arr){
          System.out.println("Hello World!");
    }
}

Python

print "Hello World!"
原文地址:https://www.cnblogs.com/fenggwsx/p/13192446.html