iOS Functions in Swift Adding Power to Functions Function Parameters

Nigel Matheson
PRO
Nigel Matheson
Pro Student 1,166 Points

still not working

I put this code in but it still does not work, bit confused?

functions.swift
// Enter your code below
func getRemainder (value a: 10, divisor b: 3) -> Int { return a % b}

it should be like this

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

getRemainder(a: 10, b: 3)

1 Answer