← Back to Strings
Question 304
Build the Uppercase Initials
Build the Uppercase Initials
Combine a few string tools to build someone's initials. You are given two lowercase strings, first set to "grace" and last set to "hopper". Take the first character of each name using Substring(0, 1), make each one uppercase with ToUpper, then concatenate the two uppercase letters into one string and print it. The result should be the two capital initials joined together with no space between them.
Expected Output:
GH= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Strings
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.