struct that sums numbers to a point in swift
struct summer { static func sumtonum(end:Int) ->Int { var total = 0 for num in 1...end { total += num } return total } }