CJCoding With Joseph
15free / daySign inCreate account

Read 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
Topics
User Input
Auto-input
Ana\n20\nBrazil\nLeo\n21\nUSA\n
This input is automatically fed to your program's stdin
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.