A Small Profile
mediumQuestion 244Real programs often combine several different variable types in one message. Declare a string named name set to "Leo", an int named age set to 12, and a char named grade set to 'B'. Then use a single interpolated print statement to produce exactly this line: Leo, age 12, grade B.
Expected output
Leo, age 12, grade B.= newline. The output ends with a newline, so print one after the last line.
Hints4 available
Sign in to use hintsTopics
Variables
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.