Hello, World!

Source: Internet
Author: User

By freeuniverser

Time passed too fast! The program language is also growing explosively ...... But there is no doubt that there is a possibility of plagiarism or imitation ...... Today isYyyy! Haha ~

Let's see what we 've been using for a long time.C:

1 #include <stdio.h>2 main()3 {4   printf("Hello,World!");5 }

I don't know you when I put two P?CPP:

1 #include <iostream>2 3 using namespace std;4 5 int main()6 {7   cout<<"Hello,World!"<<endl;8   return 0;9 }

Jia wa! Not small!Java:

1 public class HelloWorld2 {3   public static void main(String []args)4   {5     System.out.println("Hello,World");6   }7 }

Well number? Don't call every day!Csharp:

1 using System;2 class HelloWorld3 {4   static void Main()5   {6      Console.WriteLine("Hello,World!");7   }8 }

Python is coming. Run fast!Python:

print("Hello,World!")

Hurry up and grab rubies! Fortune!Ruby:

puts "Hello,World!"

Oh, no hurry! Recently I am very popular?Objective-C:

1 #import <Foundation/Foundation.h>2  3 int main(int argc, char *argv[]){4     @autoreleasepool{5         NSLog(@"Hello World!");6     }7   return 0;8 }

So many Pearls Make Money ~Perl:

print "Hello,World!\n"

I am living again!Pascal:

1 begin2   writeln('Hello,World!');3 end.

If you want to access the Internet, please contact me ~PHP:

1 <?php2   echo 'Hello,World!';3 ?>

All inclusive!Scheme:

(display "Hello,World!")

Maybe I am old, but I am still there!Assembly:

 1 name "hello world" 2  3 org 100h 4  5 jmp start       ; jump over data declaration 6  7 msg:    db      "Hello, World!", 0Dh,0Ah, 24h 8  9 start:  mov     dx, msg  ; load offset of msg into dx.10         mov     ah, 09h  ; print function is 9.11         int     21h      ; do it!12         13         mov     ah, 0 14         int     16h      ; wait for any key....15         16 ret ; return to operating system.

Erlang here ~Erlang:

1 -module(hello).2  -export([hello_world/0]).3  io:fwrite("Hello, World!\n").

I am not actually a language? He is the manager of the gentleman.Delphi:

1 program HelloWorld;2 uses3     Dialogs;4 begin5     ShowMessage('Hello, World!');6 end.

I represent Basic because it is invisible.Visual Basic:

MsgBox "Hello, world!"

Who are I afraid?Prolog:

write("Hello,World!").

Worship the teacher! Haha ~Bash:

echo 'Hello,World!'

Lucy, your mom calls you home for dinner! The moon is out ~Lua:

print "Hello,World!"

Wait, let's go!Go:

1 package main2 import "fmt"3 func main()4 {5 fmt.Println("Hello,World!")6 }

I am not a little girl ~JavaScript:

alert("Hello, World!");

Lace, Lace ~ HahaLisp:

(format t "hello, world~%")

Come on! Oh, lace is my mom ~Common Lisp:

(format t "Hello world!~%")

Leaving me, you may want ...... Browser, wait for me!HTML:

1 

Oh, desert boat is coming ~~OCaml:

print_endline "Hello world!";;

Are I a mathematician? No, I am a function!Haskell:

putStrLn "Hello, World!"

I am a miscellaneous?Scala:

1 object HelloWorld extends App2 {3    println("Hello, world!")4 }

I am not a Java developer ~Groovy:

def name='World';println "Hello $name!"

......

So much is actually one! Haha ~

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.