how do I add range2+range 3+range4 more conveniently, I add the series together now one by one.
import Foundation
print("Xcode Swift")
// create some ranges let range1 = 1 ... 10 let range2 = 2 ... 10 let range3 = 3 ... 10 let range4 = 4 ... 10 let range5 = 5 ... 10
// Count the ranges together from range2 to range4 let range6 = range2.count + range3.count + range4.count
// print the number of values
print(range6)
import Foundation
print("Xcode Swift")
// create some ranges let range1 = 1 ... 10 let range2 = 2 ... 10 let range3 = 3 ... 10 let range4 = 4 ... 10 let range5 = 5 ... 10
// Count the ranges together from range2 to range4 let range6 = range2.count + range3.count + range4.count
// print the number of values
print(range6)