โ Back to User Input
Question 138
CSV Two Rows
CSV Two Rows
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
Topics:
User Input
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.