0

Why is it that when you print a string that contains breaks or \n, multiply times,only the first copy goes a line down?

https://code.sololearn.com/cawTyIlK8BUu/?ref=app

21st Apr 2019, 10:46 AM
Kristi Teneqexhi
Kristi Teneqexhi - avatar
3 Respostas
+ 2
You can use a text editor to verify that the output is correct. "this string \n will be multiplied by 3" equals "this string will be multiplied by 3" Copy and paste the string three times and the result will be "this string will be multiplied by 3this string will be multiplied by 3this string will be multiplied by 3" The line break is always at the same position (after "this string").
21st Apr 2019, 10:53 AM
Anna
Anna - avatar
+ 3
And what a fast did you reply im amazed with this app
21st Apr 2019, 12:44 PM
Kristi Teneqexhi
Kristi Teneqexhi - avatar
+ 2
Aaaa yes i wasn't paying attation at that you are right thx because i was focusing on the start of the question. Now it is clear thx a lot. I am just a starter tho.
21st Apr 2019, 12:43 PM
Kristi Teneqexhi
Kristi Teneqexhi - avatar