iOS Functions in Swift Functions in Swift Function Parameters

[SOLVED] Getting this error:error: MyPlaygroundTREE.playground:9:19: error: use of undeclared type 'INT'

func area(length: INT) { let width = 12 let areaofroom = length * width print(areaofroom) }

area(length: 12) area(length: 20)

NVM. I found my issue. Had to put Int instead of INT

you should write Int like that length: Int you code should be like that

func area(length: Int) { let width = 12 let areaofroom = length * width print(areaofroom) }

area(length: 12) area(length: 20)