wes d2a2ba9e15 first commit | 4 lat temu | |
---|---|---|
.. | ||
README.md | 4 lat temu | |
code.cpp | 4 lat temu | |
unitTest.cpp | 4 lat temu |
by Helen Yu tags: strings, formatting
Given two strings, firstName and lastName, return a single string in the format "last, first". Examples concatName("First", "Last") ➞ "Last, First" concatName("John", "Doe") ➞ "Doe, John" concatName("Mary", "Jane") ➞ "Jane, Mary" Notes Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck
Given two strings, firstName
and lastName
, return a single string in the format "last, first".
concatName("First", "Last") ➞ "Last, First"
concatName("John", "Doe") ➞ "Doe, John"
concatName("Mary", "Jane") ➞ "Jane, Mary"
return
the result.