+ 1

Roses are red Violets are blue \n New lines problem

Ok so I'm doing the practice for the new lines using \n instead of endl. I get the same result as the example but it says I'm not doing it correctly. SOS

3rd Oct 2020, 11:29 PM
Mandy
Mandy - avatar
8 Réponses
+ 2
Oook folks i figured it out. I was just missing the space between \n and the next line. #include <iostream> using namespace std; int main() { cout<<"Roses are red\n Violets are blue\n I love C++\n And you will like it too!"; return 0; }
3rd Oct 2020, 11:55 PM
Mandy
Mandy - avatar
+ 2
👍
4th Oct 2020, 12:14 AM
SØÜrÅbh _ ẞïsht
SØÜrÅbh _ ẞïsht - avatar
+ 2
Good job.
4th Oct 2020, 12:34 AM
Sonic
Sonic - avatar
0
Mandy hello
5th Oct 2020, 1:23 AM
SØÜrÅbh _ ẞïsht
SØÜrÅbh _ ẞïsht - avatar
0
Hello.
5th Oct 2020, 1:34 AM
Mandy
Mandy - avatar
0
Mandy can you please reply me in inbox chat
15th Oct 2020, 9:41 AM
SØÜrÅbh _ ẞïsht
SØÜrÅbh _ ẞïsht - avatar
0
There aren't any messages in my inbox. What's up??
15th Oct 2020, 4:58 PM
Mandy
Mandy - avatar
0
Mandy go and check again....and if there is no message ....please tell me a platform where we can talk like facebook , instagram or whatsapp or snapchat
18th Oct 2020, 7:43 AM
SØÜrÅbh _ ẞïsht
SØÜrÅbh _ ẞïsht - avatar