Coding Tests in Swift
Division
source: hackingwithswift.com
let weeks = 465 / 7
print("There are (weeks) weeks until the event.")
// 66
let weeks: Double = 465 / 7
print("There are (weeks) weeks until the event.")
// 66.42857142857143
source: hackingwithswift.com
let weeks = 465 / 7
print("There are (weeks) weeks until the event.")
// 66
let weeks: Double = 465 / 7
print("There are (weeks) weeks until the event.")
// 66.42857142857143