func pow(firstArg a: Int, secondArg b: Int) -> Int { var res = a for _ in 1..<b { res = res * a } print(res) return res } pow(firstArg:5, secondArg:3)
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more