I need to define and call a function called areaOfRectangle that takes two Int parameters, length, and width, and prints the result of length * width. I actually got result with length * width but it is telling me to make sure I’m defining a function with the correct name and parameters. The answer below will print length * width which is right but the steps are not what it should be.
func areaOfRectangle(length: Int, width: Int) {
print(“length * width”)
}
areaOfRectangle(length: 0, width: 0)