当前位置: 首页 > 资讯 > 娱乐杂谈 > 50种不同编程语言的“HelloWorld”,你知多少?

50种不同编程语言的“HelloWorld”,你知多少?

放大字体  缩小字体 发布日期:2019-11-24 浏览次数:25

原标题:50种不同编程语言的“HelloWorld”,你知多少?

50种编程语言。

责编|屠敏

bdosequ0005H;BDOSentrypoint

start:mvic,9;BDOSfunction:outputstring

lxid,msg$;addressofmsg

callbdos

ret;returntoCCP

msg$:db'Hello,world!$'

endstart

PROGRAMHello

WRITE(*,*)'Hello,World!'

STOP

END

PROGRAMHello

WRITE(*,*)'Hello,World!'

ENDPROGRAMHello

(write-line"Hello,World!")

IDENTIFICATIONDIVISION.

PROGRAM-ID.HELLO-WORLD.

PROCEDUREDIVISION.

DISPLAY"Hello,World!"

STOPRUN.

PRINT"Hello,World!"

END

print[HelloWorld!]

main

{

putstr("Helloworld!*n");

return(0);

}

begin

writeln('Hello,World!')

end.

programHelloWorld(output);

begin

writeln('Hello,World!');

readln;

end.

:HELLO(--)."Hello,World!"CR;

HELLO

#include

intmain(void){

printf("Hello,World!n");

return0;

}

Transhow:'Hello,world!';cr.

:-write('Hello,World!'),nl.

print"Hello,World!n";

(display"Hello,World!")(newline)

CREATETABLEmessage(textchar(15));

INSERTINTOmessage(text)VALUES('Hello,World!');

SELECTtextFROMmessage;

DROPTABLEmessage;

#include

usingnamespacestd;

intmain{

cout<<"Hello,World!"<

return0;

}

withAda.Text_IO;

procedureHellois

begin

Ada.Text_IO.Put_Line("Hello,World!");

endHello;

(princ"Hello,World!")

disp('Hello,World!')

class

HELLO_WORLD

create

make

feature

make

do

print("Hello,world!%N")

end

end

#import

intmain{

@autoreleasepool{

NSLog(@"Hello,World!");

}

}

io:format("Helloworld!~n").

print"Hello,World!n";

print_string"Hello,World!n";;

puts"Hello,World!"

main=putStrLn"Hello,World!"

print("Hello,World!")

PublicSubMain

Debug.Print"Hello,World!"

EndSub

print("Hello,World!")

puts'Hello,World!'

classHelloWorld{

publicstaticvoidmain(String[]args){

System.out.println("Hello,World!");

}

}

document.write('Hello,World!');

print"Hello,World!"

package{

publicclassHelloWorld{

publicfunctionHelloWorld{

trace("HelloWorld!");

}

}

}

importstd.stdio;

voidmain{

writefln("Hello,World!");

}

usingSystem;

internalstaticclassHelloWorld{

privatestaticvoidMain(){

Console.WriteLine("Hello,World!");

}

}

println"Hello,World!"

objectHelloWorldextendsApp{

println("Hello,World!")

}

printfn"Hello,World!"

echo"Hello,World!"

(println"Hello,World!")

packagemain

import"fmt"

funcmain{

fmt.Println("Hello,World!")

}

fnmain{

println("Hello,World!");

}

main{

print('Hello,World!');

}

funmain(args:Array){

println("Hello,World!")

}

voidhello{

print("Hello,World!");

}

console.log("Hello,World!");

println("Hello,World!")

print("Hello,World!")

责任编辑:


空包

“如果发现本网站发布的资讯影响到您的版权,可以联系本站!同时欢迎来本站投稿!

0条 [查看全部]  相关评论