difficulty | OAs | projects | ||||
---|---|---|---|---|---|---|
|
|
|
https://the-winter.github.io/codingjs/exercise.html?name=in1To10&title=Logic-1
Dado um número n, retorne true
se n estiver no intervalo 1..10, inclusive. A
menos que "outsideMode" seja true
, nesse caso retorne true
se o número for
menor ou igual a 1, ou maior ou igual a 10.
Exemplo
in1To10(5, false) → true
in1To10(11, false) → false
in1To10(11, true) → true
↩️ Voltar