今天闲着没事干
C语言
#include<stdio.h>
int main(){
printf("Hello, World!");
return 0;
}
C++
#include<iostream>
using namespace std;
int main(){
cout<<"Hello, World!";
return 0;
}
Python
print("Hello, World!")
PHP
<?php
echo "Hello World!";
?>
HTML
<!DOCTYPE html>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
</body>
</html>
JAVA
public class hello{
public static void main(String [] args){
System.out.println("Hello,world!");
}
}
Java script
<script>
console.log('hello world!')
</script>
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
}
}
}
Windows批处理
echo Hello, World!
package main
import "fmt"
func main() {
fmt.Println("Hello World !")
}
Ruby
print ("Hello World!");
VBSscript
WScript.echo "hello world!"