logo CodeStepByStep logo

helloWorld

Language/Type: C++ basics console output

Write a complete C++ program with a main function that prints the following console output:

Hello, world!

Note: You must declare your main function with the following header:

int main() {
Function: Write a C++ function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.