Even though i added return statement
package main
import "fmt"
func areaOfRect(length float64, breadth float64 ) float64 {
return (length*breadth)
}
func main() {
area := areaOfRect(7,9)
fmt.Println("Area of Rectangle is: ", area)
}
It is throwing below error
Have you added the return statement in the function areaOfRect?
I am unable to proceed further beacause of this error