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

30th May 2018, 1:59 PM
Fatma Almasqari
Fatma Almasqari - avatar
2 Answers
+ 6
cout<<"first_name\n middle_name\n last_name"; you can use variables for names
30th May 2018, 2:12 PM
Scooby
Scooby - avatar
+ 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 : )
30th May 2018, 2:16 PM
Ipang