Space in the output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Space in the output

How can I add a space line in the output in swift? Example: var a = 42 print(a) var b = 50 print(b) The output will be. 42 50 And I want to leave a space between 42 and 50. So, it will look like this: 42 50

3rd Apr 2020, 2:40 AM
Rafael Gonzalez
Rafael Gonzalez - avatar
2 Answers
+ 2
print(a, b)
3rd Apr 2020, 2:53 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Print “hello world”
16th Dec 2022, 8:29 PM
Aayush AP13195
Aayush AP13195 - avatar