C/C++ Programming Learning-Week 5① Hello World

Topic link

Title description

There is no input for this super simple question.

You only need to output the famous phrase "hello world" on one line.

Sample Input

no

Sample Output

hello world

Ideas

Just output directly.

C language code:

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

C++ code:

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

Guess you like

Origin blog.csdn.net/qq_44826711/article/details/112909348