swift print
print("Hello World")
//printing a value
let num = 5
print(num)
print("a num: " + num) //concatenation
print("a num: \(num)") //interpolation
swift print
print("Hello World")
//printing a value
let num = 5
print(num)
print("a num: " + num) //concatenation
print("a num: \(num)") //interpolation
print things in swift
print("Hello World")
print("Hello Again")
//prints Hello World, and then Hello Again on a new line
//Hello World
//Hello Again
print("Hello World", terminator="")
print("Hello Again")
//prints Hello World and then Hello Again on the same line
//Hello WorldHello Again
print(123.45)
//prints 123.45
var message: String = "Hello"
print(message)
//prints Hello
printf in swift
let x = 3.1415926
print(String(format: "%.2f", x)) //3.14
print(String(format: "%2.2f", x)) // 3.14 (two blank spaces in front of 3.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us