Level 6 > Lesson 8
package main
import "fmt"
func areaOfRect(length float64, breadth float64) float64{
// write code here
return length*breadth
}
func main() {
area := areaOfRect(7,9)
fmt.Println("Area of Rectangle is: ", area)
}
why it showing in studytonight compiler "
Have you added the return statement in the function areaOfRect?"