Swift Program To Concatenate Two Strings

Swift Program To Concatenate Two Strings

Swift Program To Concatenate Two Strings

// Swift program to concatenate two strings

var str1 = "Hello "
var str2 = "World"
var str3 = ""

str3 = str1 + str2

print(str3)
Hello World

...Program finished with exit code 0
Press ENTER to exit console.
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment