Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int EvalSwitch()
- {
- bool cupFull = true;
- bool sugarAdded = false;
- int result = 0;
- switch (cupFull)
- {
- case true:
- switch (sugarAdded)
- {
- case true:
- result = 1;
- break;
- case false:
- result = 2;
- break;
- }
- break;
- case false:
- switch (sugarAdded)
- {
- case false:
- result = 3;
- break;
- case true:
- result = 4;
- break;
- }
- break;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment