This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year = 2016 | |
let name = "Cody" | |
var age = 20 | |
var born = year-age+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year = 2016 | |
let name = "Cody" | |
var age = 20 | |
var born = year-age+1 | |
year = 2000 | |
age = 30 | |
born = year-age+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year = 2016 | |
let name = "Cody" | |
var age = 20 | |
var born = year-age+1 | |
age = 30 | |
born = year-age+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year = 2015 | |
let name = "Cody" | |
var age = 20 | |
var born = year-age+1 | |
age = "Cathy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year : Int = 2016 | |
let name : String = "Cody" | |
var age : Int = 20 | |
var born : Int = year-age+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year : Int = "2016" | |
let name : String = "Cody" | |
var age : Int = 20 | |
var born : Int = year-age+1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year : Int = 2015 | |
let age : UInt = 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let year : Int = 2015 | |
let age : UInt = -20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let minOfInt8 = Int8.min | |
let maxOfInt8 = Int8.max | |
let minOfInt16 = Int16.min | |
let maxOfInt16 = Int16.max | |
let minOfInt32 = Int32.min | |
let maxOfInt32 = Int32.max | |
let minOfInt64 = Int64.min |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pi : Float = 3.1425926 | |
let piWithMoreDetail : Double = 3.1415926535897932 |
OlderNewer