fix: variable assignment exercises
This commit is contained in:
@ -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() {
|
||||
|
@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user