Skip to main content
Inspiring
May 22, 2015
Answered

Help please!!

  • May 22, 2015
  • 1 reply
  • 229 views

I wonder how it could make reading the code as follows:

"If the value is greater than X and less than X"

I tried using the following:

if (score> = 10 && <= 30)

But this way I used is giving error at the time of execution of the tests, could anyone help me?

This topic has been closed for replies.
Correct answer Ned Murphy

"If the value is greater than X and less than X"  is an impossible scenario, but for what you show as an example the following would be a way to write it...

if (score >= 10 && score <= 30)

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
May 22, 2015

"If the value is greater than X and less than X"  is an impossible scenario, but for what you show as an example the following would be a way to write it...

if (score >= 10 && score <= 30)