0

How to add a new line without using \n ?

23rd Dec 2019, 3:23 PM
Castor Reeva
Castor Reeva - avatar
2 ответов
+ 4
In java use println funtion
23rd Dec 2019, 4:02 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
0
"\x0a" in python: print("hello word", "\x0a", "hello world", sep='') or print() you can even do: print("hello word", "\x0a" * 5, "hello world", sep='') # five blank lines in C++: cout << "hello world" << '\x0a' << "hello world"; or cout << endl; Here's a handy reference you can use: http://www.cplusplus.com/doc/ascii/ The "\x0a" is for the "LF",.... I think it stands for "Line Feed".
23rd Dec 2019, 5:38 PM
rodwynnejones
rodwynnejones - avatar