declare string variable swift code example
Example 1: print string sqift
var str1 = "Hello, world"
print(str1)
Example 2: swift variable in a string
let x = 10
let string = "x equals \(x) and you can also put expressions here \(5*2)"
var str1 = "Hello, world"
print(str1)
let x = 10
let string = "x equals \(x) and you can also put expressions here \(5*2)"