CSV Two Rows
mediumQuestion 138Read two people from input. Each person has name, age, and country (one value per line). Print the CSV header and two rows.
Output format: Name,Age,Country name1,age1,country1 name2,age2,country2
Print the header once, then both rows.
Expected output
Name,Age,Country Ana,20,Brazil Leo,21,USA
= newline. The output ends with a newline, so print one after the last line.
Hints4 available
Sign in to use hintsTopics
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.