+ 1

Can we use endl at staring of cout sentence??

1st Aug 2018, 6:54 PM
rutuja awate
rutuja awate - avatar
3 Antworten
+ 1
you can use endl only like this cout<<endl; in sentance you can use this cout<<"sentamce \n";
1st Aug 2018, 7:17 PM
B K
+ 1
In fact, you can use endl as many times in a cout sentance as you want: cout << endl << "Here" << endl << "is" << endl << "text" << endl << "on" << endl << "different" << endl << "lines" << endl << endl << "Hey!"; Output: Here is text on different lines Hey!
1st Aug 2018, 9:25 PM
Parker king
Parker king - avatar