Learn

introduction()

Instructions

1.

Write a function introduction() with no return value that has:

  • std::string parameter named first_name.
  • std::string parameter named last_name.

The function should print the last_name, followed by a comma, a space, first_name another space, and finally last_name again.

For example, introduction("James", "Bond"); should print the following:

Bond, James Bond

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?