2018.08.31 10:57 swift learning experience

  Actually, I’ve always liked swift. I think Xcode is very advanced. I can operate it by buying a MacBook. That’s good.

var str = "Hello, playground"
var myVariable = 42
myVariable = 50
let myConstant = 42
let implicitInteger = 70
let implicitDouble = 70.0
let explicitDouble: Double = 70
let label = "The width is "
let width = 94
let widthLabel = label + String(width)
let apples = 3
let oranges = 5
let appleSummary = "I have \(apples) apples."
let fruitSummary = "I have \(apples + oranges) pieces of fruit."

swiftCode

Leave a Reply

Your email address will not be published. Required fields are marked *