From 67b20e5755c25f81110f93cd14a1052b2f984164 Mon Sep 17 00:00:00 2001 From: Inanc Gumus Date: Tue, 13 Nov 2018 16:51:04 +0300 Subject: [PATCH] fix: variable assignment exercises --- .../exercises/04-find-the-rectangle-perimeter/main.go | 6 +++++- .../04-assignment/exercises/07-multi-short-func/main.go | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/06-variables/04-assignment/exercises/04-find-the-rectangle-perimeter/main.go b/06-variables/04-assignment/exercises/04-find-the-rectangle-perimeter/main.go index 4a89de9..ad344b7 100644 --- a/06-variables/04-assignment/exercises/04-find-the-rectangle-perimeter/main.go +++ b/06-variables/04-assignment/exercises/04-find-the-rectangle-perimeter/main.go @@ -19,10 +19,14 @@ package main // 3. Print the `perimeter` variable // // HINT -// Rectangle formula = 2 * (width + height) +// Formula = 2 times the width and height // // EXPECTED OUTPUT // 22 +// +// BONUS +// Find more formulas here and calculate them in new programs +// https://www.mathsisfun.com/area.html // --------------------------------------------------------- func main() { diff --git a/06-variables/04-assignment/exercises/07-multi-short-func/main.go b/06-variables/04-assignment/exercises/07-multi-short-func/main.go index a553c9c..1eb766f 100644 --- a/06-variables/04-assignment/exercises/07-multi-short-func/main.go +++ b/06-variables/04-assignment/exercises/07-multi-short-func/main.go @@ -10,9 +10,9 @@ package main // --------------------------------------------------------- // EXERCISE: Multi Short Func // -// 1. Multiple short declare two variables +// 1. Declare two variables using multiple short declaration syntax // -// 2. Initialize variables using `multi` function below +// 2. Initialize the variables using `multi` function below // // 3. Discard the 1st variable's value in the declaration //