0

how do I use "\n" in a for loop??

24th Oct 2016, 12:11 AM
jossafat corona
jossafat corona - avatar
8 Respuestas
+ 2
Either inside a string: "blabla blablabla\n"; or concatenate it: "blabla" + variable + "\n";
25th Oct 2016, 12:17 AM
Liam
Liam - avatar
+ 1
pretty sure it's \
24th Oct 2016, 1:51 AM
jossafat corona
jossafat corona - avatar
0
use \\n
24th Oct 2016, 6:14 PM
bayram akdemir
bayram akdemir - avatar
0
thanks
24th Oct 2016, 7:04 PM
jossafat corona
jossafat corona - avatar
0
Do you mean to create a new line after each loop iteration or actually print "\n" in a string?
24th Oct 2016, 11:28 PM
Liam
Liam - avatar
0
for a new line after each iteration
24th Oct 2016, 11:59 PM
jossafat corona
jossafat corona - avatar
0
thank u Liam the concatenation worked
25th Oct 2016, 1:41 AM
jossafat corona
jossafat corona - avatar
- 3
Is “/n” not “\n”
24th Oct 2016, 1:45 AM
晨沐风
晨沐风 - avatar