Hello, World!

Lab C++ Beginner 10 points

Write a C++ program that prints exactly Hello, World!

Input

None.

Output

Hello, World!

Example

Output

Hello, World!
Sample output available
Editor
C++

Hints

cout << sends text to the screen.

endl (or "\n") ends the line.

Solution explanation

#include <iostream> gives you cout; using namespace std; lets you write cout instead of std::cout.

Show solution
#include <iostream>
using namespace std;

int main() {
    cout << "Hello, World!" << endl;
    return 0;
}
Output
Answer
HOME LEARN COMMUNITY DASHBOARD