iOS Functions in Swift Adding Power to Functions Function Parameters

Shouldn't I know this by now?

I can't decide how this function goes from the function title to the equation. So far I am guessing

func getRemainder (a % b == 0)

amirite?

functions.swift
// Enter your code below

1 Answer

tromben98
tromben98
13,272 Points

Hi!

I think you should go through the videos one more time. Keep working!

func getRemainder(value a: Int, divisor b: Int) -> Int {
return a % b

}

let result = getRemainder(value: 10, divisor: 3)