Can we say "to" word in c++ launguage? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can we say "to" word in c++ launguage?

or what is the word that take it place ... for example I want to say 'case 0 to 50 ' how I can do it?

11th Jan 2017, 5:22 PM
Abdullah Mohammed
Abdullah Mohammed - avatar
5 Answers
+ 2
you can use if statments instead of switch if(x>=0 && x<=50){...}
11th Jan 2017, 6:27 PM
Mima_nf
Mima_nf - avatar
+ 2
Or while
19th Jan 2017, 12:50 PM
Poornima Sharma
Poornima Sharma - avatar
0
thanks soo much dear Mima
11th Jan 2017, 6:35 PM
Abdullah Mohammed
Abdullah Mohammed - avatar
0
can't we use switch for the same
19th Jan 2017, 12:50 PM
Poornima Sharma
Poornima Sharma - avatar