+ 3
And what is endl for?
2 Réponses
+ 3
In C++, endl is used to specify a newline in a string, similar to \n and <br>.
For example, if you wanted to print 2 different strings on different lines, you would do the following:
cout << "Solo" << endl;
cout << "Learn" << endl;
/*Output-
Solo
Learn
*/
0
we use the condition..
like while
to define a condition