0
C++
Write a program to print your first name on the first line,your middle name on the second line and your last name on the third line using only one cout statement https://code.sololearn.com/WwY9GRnO2aCj/?ref=app
2 Answers
+ 6
cout<<"first_name\n middle_name\n last_name";
you can use variables for names
+ 7
Your homework? well, you can output the first, middle, and last name on different lines by placing std::endl or a line break character '\n' in between each string. You can do it, just give it a try : )



