How To Output Multiple Variables Using Cout In Separate Line

[Solved] How To Output Multiple Variables Using Cout In Separate Line | Perl - Code Explorer | yomemimo.com
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

Answers related to how to output multiple variables using cout in separate line

Code Explorer Popular Question For Perl