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() {
Complete program: Write an entire program that you could put into a file and run outside of CodeStepByStep.

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.