C/C++编程学习 - 第5周 ① Hello World

题目链接

题目描述

这道超级简单的题目没有任何输入。

你只需要在一行中输出著名短句"hello world"就可以了。

Sample Input

Sample Output

hello world

思路

直接输出就好了。

C语言代码:

#include<stdio.h>
int main()
{
    
    
    printf("hello world");
    return 0;
}

C++代码:

#include<bits/stdc++.h>
using namespace std;
int main()
{
    
    
	cout << "hello world" << endl;
	return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_44826711/article/details/112909348