package main import "fmt" // TODO: define Rectangle struct with Width and Height // TODO: define Area() method on Rectangle func main() { r := Rectangle{Width: 5, Height: 10} fmt.Println(r.Area()) }
Output
Click Run to execute, or Check to validate.
Community Chat
Ask a question β uByte AI answers instantly
Loading messagesβ¦
Sign in to ask questions
Shift+Enter for new line Β· Enter to send