var num = 1
func increment(num: inout Int) {
    num += 1 // if you didn't make num as inout you'd get a compile time error
}
increment(num: &num) // inout parameters need to be pre-pended with an & symbol
print(num)