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

Level 4 Lesson 2

Please share correct answer because I was writing code but couldn't get correct answer.
by

1 Answer

sam5epi0l
Here is a possible solution:


package main
import "fmt"

func main() {
var length float64 = 3.5
var width int = 4
var area int
area = int(length)*width
fmt.Println("Area is:", area)
}

Login / Signup to Answer the Question.