How to print without line break in Swift?

Print function in Swift is a global function. By default, the terminator and separator parameters have values inbuilt in them. As a result, when we try to output two consecutive print statements, it will print the output with line break. In order to remove the linebreak include the terminator parameter in print statement with a empty string value.Screen Shot 2018-08-09 at 10.25.01 AM

Leave a Reply