When I apply the escape sequence \n im getting a compilation error. Please what can I do to move to the next lineddres | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When I apply the escape sequence \n im getting a compilation error. Please what can I do to move to the next lineddres

#include <iostream> using namespace std; int main () { int q=47; int w=271; int sum=q+w; cout<<sum; int myaddress=704432; cout<<myaddress; return 0; }

4th Mar 2017, 5:07 AM
Scooby Doo
Scooby Doo - avatar
3 Answers
+ 4
cout <<sum << myaddress
4th Mar 2017, 5:13 AM
Andre van Rensburg
Andre van Rensburg - avatar
0
its working thank you. how can print them both in different lines
4th Mar 2017, 5:45 AM
Scooby Doo
Scooby Doo - avatar
0
cout<<sum \n<<myaddress
6th Mar 2017, 11:57 PM
Alaa Yosry
Alaa Yosry - avatar