iOS Functions in Swift Functions in Swift Function Parameters

how do I declare the type Int?

Playground execution failed:

error: MyPlaygroundTREE.playground:9:30: error: parameter requires an explicit type func area(length: Int, width Int) {

1 Answer

Joel Price
Joel Price
12,256 Points

If you're just looking to declare a variable that's an integer try making it something like for example:

var year:Int
year = 2