fix: exercises for write your first library and variables find the rectangle area exercise

This commit is contained in:
Inanc Gumus
2018-11-06 01:29:53 +03:00
parent b60bcc32cc
commit 48bf16c035
3 changed files with 16 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ import "fmt"
func main() {
var (
length int
area int
width, height = 5, 6
)
@@ -20,7 +20,7 @@ func main() {
// just like in math
length = 2 * (width + height)
area = 2 * (width + height)
fmt.Println(length)
fmt.Println(area)
}