Python
print("hello world!")
C++
#include<iostream>
using namespace std;
int main()
{
cout<<"hello world!"<<endl;
return 0;
}
C语言
#include<stdio.h>
int main()
{
printf("Hello world!");
return 0;
}
Java
import java.util.*;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>编辑</title>
</head><p>hello world!</p></body>
</html>
VBScript
msgbox("hello world!")
以上就是不同语言的输出“hello world!”的代码,如有错误之处,欢迎指出!