0

In the basic program when i add the i love programming to Hello world then it only shows the Hello world. What is wrong?

2nd line in the basic program does not show

6th Oct 2016, 7:21 AM
Carlos
8 odpowiedzi
+ 2
go back and check the original codes for corrections and try it again.
22nd Oct 2016, 10:01 PM
Wills
0
Edit your question and copy-paste your code please.
6th Oct 2016, 7:23 AM
Zoltán Zörgő
Zoltán Zörgő - avatar
0
#include<iostream> namespace std; int main() { cout <<"Hello world"\n; cout <<"I love programming";
6th Oct 2016, 7:31 AM
Carlos
0
return0; }
6th Oct 2016, 7:32 AM
Carlos
0
\n is a character. You should include it in the string: cout <<"Hello world\n"; By the way your code is not compiled, you see only the compiler error message.
6th Oct 2016, 7:34 AM
Zoltán Zörgő
Zoltán Zörgő - avatar
0
thanks
6th Oct 2016, 7:47 AM
Carlos
0
all good now. thanks
23rd Oct 2016, 9:16 AM
Carlos
0
In what language?
24th Nov 2016, 4:35 AM
jesus gonzalez rondon
jesus gonzalez rondon - avatar