Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

So this is the correct code to pass the exercise:

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)
}

Why would you not let me do it the other way? You have to add more test cases it is so confusing sometimes
7 months ago