hello world

GBasic

print("Hello,?world!")

易語(yǔ)言

信息框?("Hello,?World!",?0,?,?)

VB

ModuleMainFrm

????SubMain()

????????System.Console.WriteLine("Hello,?World!")

????EndSub

EndModule

C

#include?

intmain()

{

????printf("Hello,?World!");

????return0;

}

Swift

print("Hello,?World!")

Go

package?main

func?main()?{

????println("Hello,?World!")

}

BATCH

@echooff

echoHello,?World!

pause

Java

publicclassHelloWorld

{

????publicstaticvoidmain(String[]?args)

????{?

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

????}

}

C++

#include?

usingnamespacestd;

intmain()

{

????cout<<"Hello,?World!"<

????return0;

}

C#

namespaceHelloWorld

{

????classProgram

????{

????????staticvoidMain(string[]?args)

????????{

????????????System.Console.Write("Hello,?World!");

????????}

????}

}

PHP

echo?"Hello,?World!";

JavaScript

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

Python 2

print"Hello,?World!"

Python 3

1print("Hello,?World!")

LaTeX

\documentclass{article}


\begin{document}

????Hello,?World!


\end{document}

Mathematica

方法一:基于Wolfram 底層語(yǔ)言(進(jìn)入表達(dá)式界面使用)?[2]

Cell["Hello,?World!"]

方法二:直接使用數(shù)學(xué)輸出函數(shù)

CellPrint[Cell["Hello,?World!"]]

Ruby

defhello()??

????return"Hello?,?World"

end??

Kotlin

fun?main(args:?Array)?{

????println("Hello,?world!")

}

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容