can we add conditions such as <= or > to the case value? for example case <16 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can we add conditions such as <= or > to the case value? for example case <16

5th Jul 2016, 10:00 PM
Jastria Rahmat
Jastria Rahmat - avatar
4 Answers
+ 2
no
6th Jul 2016, 1:05 AM
Igor B
Igor B - avatar
+ 1
why not try it out by yourself.......wouldn't harm you anyway
6th Jul 2016, 2:04 AM
Mukul Kumar
Mukul Kumar - avatar
0
no we cant for relational operators we hv to use if else or if else if statements
6th Jul 2016, 4:40 PM
Ruchir Gupta
0
thank you for the answers
7th Jul 2016, 2:18 PM
Jastria Rahmat
Jastria Rahmat - avatar