what operator does switch case uses to check the condition
Answers
Answered by
6
Answer:
Here the mark is defined as 100 and when switch statement is executed, the condition will be checked as follows.
- case mark <=35. true => (100 <= 35) - this will give the result false. ...
- case mark >=36 && mark <= 60. true === (100 >=36 && 100 <= 60) ...
- case mark >= 61 && mark <= 80. ...
- case mark >= 81.
Answered by
1
________________
✔ Here the mark is defined as 100 and when switch statement is executed, the condition will be checked as follow
case mark <=35. true => (100 <= 35) - this will give the result false.
case mark >=36 && mark <= 60. true === (100 >=36 && 100 <= 60)
case mark >= 61 && mark <= 80.
case mark >= 81.
_________________
Similar questions