From 888d46713ee30c478330df9b0763b020436cde92 Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Thu, 7 Jul 2022 22:51:25 +0100 Subject: [PATCH] Update README.md --- subjects/squareroot/README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/subjects/squareroot/README.md b/subjects/squareroot/README.md index 83aef7bd..7e522fe3 100644 --- a/subjects/squareroot/README.md +++ b/subjects/squareroot/README.md @@ -6,6 +6,7 @@ Write a function that takes a number and returns the square root of that number. - If the number is less than zero return `-1`. ### Expected function + ```go func SquareRoot(number int) int { // Your code here @@ -21,16 +22,16 @@ package main import ( "fmt" - "piscine" +) func main() { - fmt.Println(piscine.SquareRoot(9)) - fmt.Println(piscine.SquareRoot(16)) - fmt.Println(piscine.SquareRoot(25)) - fmt.Println(piscine.SquareRoot(26)) - fmt.Println(piscine.SquareRoot(0)) - fmt.Println(piscine.SquareRoot(-1)) - fmt.Println(piscine.SquareRoot(1)) + fmt.Println(SquareRoot(9)) + fmt.Println(SquareRoot(16)) + fmt.Println(SquareRoot(25)) + fmt.Println(SquareRoot(26)) + fmt.Println(SquareRoot(0)) + fmt.Println(SquareRoot(-1)) + fmt.Println(SquareRoot(1)) } ``` @@ -45,4 +46,4 @@ $ go run . 0 -1 1 -``` \ No newline at end of file +```