mirror of https://github.com/01-edu/public.git
Update README.md
This commit is contained in:
parent
d66915e3b0
commit
3130318a76
|
@ -1,9 +1,12 @@
|
||||||
## between-us
|
## between-us
|
||||||
|
|
||||||
write a function named `BetweenUs` that takes 3 paramters and return :
|
### Instructions
|
||||||
- if the first paramter is between the second and third paramters, return **true** else return **false**
|
|
||||||
|
|
||||||
### Function
|
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**
|
||||||
|
- If the second parameter is bigger than the third return **false**
|
||||||
|
|
||||||
|
### Expected function
|
||||||
```go
|
```go
|
||||||
func BetweenUs(num, min, max int) bool {
|
func BetweenUs(num, min, max int) bool {
|
||||||
// Your code here
|
// Your code here
|
||||||
|
@ -30,6 +33,8 @@ func main(){
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
and the output should be:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ go run .
|
$ go run .
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue