mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
9 lines
206 B
Swift
9 lines
206 B
Swift
class Counter {
|
|
var count: Int = 0
|
|
func incrementBy(amount: Int, numberOfTimes times: Int) {
|
|
count += amount * times
|
|
}
|
|
}
|
|
var counter = Counter()
|
|
counter.incrementBy(2, numberOfTimes: 7)
|