2060:【例1.1】计算机输出
时间限制: 1000 ms 内存限制: 65536 KB
提交数: 72371 通过数: 36920
【题目描述】
在屏幕上输出“Hello World!”。
【输入】
(无)
【输出】
(无)
【输入样例】
(无)
【输出样例】
Hello World!
解法一:(cout)
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"Hello World!";
}
解法二:(printf)
#include<bits/stdc++.h>
using namespace std;
int main()
{
printf("Hello World!") ;
return 0;
}