0

Cases and Breaks

Do 'cases' and 'breaks' need to be in numerical order or do we put our own variables on them?

9th Mar 2017, 2:20 AM
Robert Watson IV
Robert Watson IV - avatar
2 Respostas
0
For cases you assign your own variables(numeric variables or characters). And a 'break' after every case you used besides the the default case.
9th Mar 2017, 2:53 AM
itumeleng
itumeleng - avatar
0
you can put your own variables. you should actually try with yourself, you will learn in better way. if you have doubt , you can do this that or not..implement it in program and see how it goes. implementing is best way to learn.
9th Mar 2017, 2:53 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar