Session 2 Swift IOS Code

 IOS Mobile Application Development        

Session 2 Swift IOS Code

// Variable Declaration and types in Swift

var a = 12
print(a)

a = 13
print(a)

let b = 14
print("The value of b is: ", b)

var c: Int = 45
print(c)

var d: Double = 45.123456789632154698
print(d)

var e: Float = 45.123456789632154698
print(e)

var f: String = "FahadHussainCS"
print(f)

var g: Character = "F"
print(g)

var h: Bool = true
print(h)

No comments:

Post a Comment

Fell free to write your query in comment. Your Comments will be fully encouraged.