iOS Functions in Swift Functions in Swift Recap: Functions

whenever I declare a function it says do it to this and I do then it it sys do thing I already did.

it just repeats itself

// Enter your code below
func temperature(Double: Int) {

1 Answer

Jeff McDivitt
Jeff McDivitt
23,964 Points
  1. The task states that the function needs to have a single input named temperature of type double. You have an input named Double of type Int.
  2. You do not have a return statement like the task is requesting
func temperatureInFahrenheit(temperature: Double) -> Double {

return temperature