feedback

(Solution document) can you use if/ else if/ else statements inside a switch case?


can you use if/ else if/ else statements inside a switch case?

I am trying to use multi braching to look at 2 types of data inputted/



When I am looking at the years of experience worked, how do you use a switch case for a range of numbers? in the if you would do the following


if(my_int >10 && my_int <=20)


forswitch case would I have to:


switc(my_int)

case 10:

case 11:


case 12:


case 13:


ect all the way up to 20?

 







About this question:

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by .
SiteLock