From 1727ae0d8676f49ced26009e4a5fc51978ec24eb Mon Sep 17 00:00:00 2001 From: Hamza elkhatri <40549481+Hamzaelkhatri@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:48:49 +0100 Subject: [PATCH] Update README.md --- subjects/betweenus/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/betweenus/README.md b/subjects/betweenus/README.md index 6dfd72fd9..773809aef 100644 --- a/subjects/betweenus/README.md +++ b/subjects/betweenus/README.md @@ -1,7 +1,7 @@ ## between-us -write a function named `BetweenUs` that takes 3 paramters and checks if the first number is between the second and third number. -- If the first number is between the second and third number, return `true` else return `false` +write a function named `BetweenUs` that takes 3 paramters and return : +- if the first paramter is between the second and third paramters, return **true** else return **false** ### Function ```go @@ -23,6 +23,7 @@ func main(){ fmt.Println(BetweenUs(1, 3, 3)) fmt.Println(BetweenUs(1, 1, 1)) fmt.Println(BetweenUs(1, 2, 1)) + fmt.Println(BetweenUs(-1, -10, 0)) } ``` @@ -33,4 +34,5 @@ true false true false +true ```