0
How to remove new line.
I created a number list. And print one by one in new line. But after the last number code creats a new line. I don't want it how do i remove it.
4 Answers
+ 1
Try \r ?
+ 1
I've just say' try'
+ 1
+ 1
You can do like this:
Print the first element
Foreach element from the 2nd until the last:
print new line and then print it.
like this
https://code.sololearn.com/cXLRr3ud1Oes/?ref=app