logo CodeStepByStep logo

fixErrors

Language/Type: C++ basics console output syntax errors
Related Links:

The following program attempts to prompt the user for their age and then print it back to the user. But it contains five kinds of errors. Fix the code below so that it compiles and runs properly.

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.