Question : how to output multiple variables using cout in separate line
Answered by : confused-copperhead-hhvh2955ynb3
int a = 5, b = 10, c = 15;
cout << a << "\n" << b << "\n" << c;
// Note a,b,c are variables and in single cout statement I'm printing variables
// but with new line at each variable.
// Output:
// 5
// 10
// 15
Source : | Last Update : Mon, 03 Oct 22