C语言
#include<stdio.h>
int main()
{
printf("hello world!\n");
return 0;
}
C++:
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world!"<<endl;
return 0;
}
Java:
public class Main {
public static void main(String[] args) {
System.out.println("hello world!");//打印完成后自带换行
System.out.print("hello world!");//打印完成后不换行
System.out.print("hello world!");
}
}
Python:
print("hello world!");