Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 6 Lesson 8 code error

Level 6 Lesson 8 is showing the code doesn't match with the required code even if it is correct and tried various times. Please help!
by

3 Answers

sam5epi0l
Can you check yours with the code below:


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)
}
Megha0kb7h
Got it, Thanks:)
ragul7516
thanks

Login / Signup to Answer the Question.