0
how writing program in a new line how
14 Antworten
+ 2
two ways....
#include <iostream>
using namespace std;
int main ()
{
cout<<"line 1"<<endl;
cout<<"endl means newline \n";
cout<<"the (slash) n is also newline...";
return 0;
}
you can successively add '\n' but you have to use '<<' before putting another 'endl'
+ 1
using new line. <<endl;
+ 1
thanks
can you write it in a program
+ 1
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world! \n\n";
cout << "I love programming!";
return 0;
}
+ 1
thanks #franx camz
+ 1
by endl
+ 1
\n ok
+ 1
Endl or \n
+ 1
\n
+ 1
\n or endl
+ 1
\n "
+ 1
\n or endl either works
+ 1
by endl
0
or \n