fix: variable assignment exercises

This commit is contained in:
Inanc Gumus
2018-11-13 16:51:04 +03:00
parent 452c47c3d6
commit 67b20e5755
2 changed files with 7 additions and 3 deletions

View File

@ -19,10 +19,14 @@ package main
// 3. Print the `perimeter` variable // 3. Print the `perimeter` variable
// //
// HINT // HINT
// Rectangle formula = 2 * (width + height) // Formula = 2 times the width and height
// //
// EXPECTED OUTPUT // EXPECTED OUTPUT
// 22 // 22
//
// BONUS
// Find more formulas here and calculate them in new programs
// https://www.mathsisfun.com/area.html
// --------------------------------------------------------- // ---------------------------------------------------------
func main() { func main() {

View File

@ -10,9 +10,9 @@ package main
// --------------------------------------------------------- // ---------------------------------------------------------
// EXERCISE: Multi Short Func // 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 // 3. Discard the 1st variable's value in the declaration
// //