helloworld 编程

hello world作为所有编程语言的起始阶段,占据着无法改变的地位。
下面是几种常见编程语言的helloworld写法。

操作方法

(01)1.C语言#include<stdio.h>int main(void){printf("Hello,world!n");return 0;}

helloworld 编程

(02)2.C++#include<iostream>using namespacestd;int main(void){cout<<"Hello,world!"<<endl;return 0;}

helloworld 编程 第2张

(03)3.C#using System;class HelloWorld{public static void Main(){eLine("Helloworld!");}}

helloworld 编程 第3张

(04)public class HelloWorld{  public static void main(String args[]){    tln("HelloWorld");  }}

helloworld 编程 第4张

(05)script<script type="text/javascript">alert("HelloWorld");</script>

helloworld 编程 第5张

(06)print "HelloWorldn";

helloworld 编程 第6张

(07)cho "HelloWorld";

helloworld 编程 第7张

(08)onprint "HelloWolrdn";

helloworld 编程 第8张

(09)<%e("HelloWorld")%>

helloworld 编程 第9张