各种语言的hello world

1.C语言

#include

int main(void)

{

printf(“hello world!!”);

return 0

}


2.C++

#include

using namespace std;

int main(void)

{

cout<<"hello world!!"<

return 0;

}


3.c#

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks

namespace log{

class helloworld{

staticvoidMain(string[]args){

Console.WriteLine("hello world!!");

}

}

}


4.java

public class helloworld

{

public static void main(string []args)

{

system.out.println("hello world!!");

}

}


5.html

hello world!!


6.python

print("hello world!!")


7.JavaScript

console.log("hello world!")

window.document.write("hello world!")

alert('hello world!')

你可能感兴趣的:(各种语言的hello world)