Question : swift print
Answered by : eli-front
print("Hello World")
//printing a value
let num = 5
print(num)
print("a num: " + num) //concatenation
print("a num: \(num)") //interpolation
Source : | Last Update : Tue, 07 Jul 20
Question : print string sqift
Answered by : alex-dimassimo
var str1 = "Hello, world"
print(str1)
Source : | Last Update : Tue, 18 Feb 20
Question : declare empty string in swift
Answered by : zbuster05
// Create a literal empty string
var emptyString = ""
// Create an optional string
var emptyVariable: String? // This allows this variable to have a null value, or nil in swift
Source : | Last Update : Fri, 29 May 20
Question : Swift Print Statement
Answered by : samer-saeid
print("Good Morning!")
print("It's rainy today")
Source : | Last Update : Tue, 21 Jun 22