Day: December 12, 2017
12
Dec
FOR LOOPS – Double Numbers
by Maribel
No Comments
var sampleArray = [8.0, 7.0, 19.0, 28.0] for (index,value) in sampleArray.enumerated(){ sampleArray [index] = value / 2 } print(sampleArray) // ".0" in each...
12
Dec
FOR LOOPS (with Numbers and Names)
by Maribel
No Comments
//FOR LOOPS let array = [23, 32, 44, 34] for number in array { print (number) } // FOR LOOPS WITH NAMES let...