iOS Functions in Swift Functions in Swift Recap: Functions

Raghavendra Temkar
Raghavendra Temkar
677 Points

declaring function type double

func temperatureInFahrenheit(temperature: Double) -> Double {}

functions.swift
// Enter your code below
func temperatureInFahrenheit(temperature: Double) -> Double {
return temperatureInFahrenheit
}

1 Answer

Jeff McDivitt
Jeff McDivitt
23,964 Points

You have the incorrect return statement. The task asks you to return temperature

func temperatureInFahrenheit(temperature: Double) -> Double {

return temperature

}