im not very sure what ur asking but if ur asking how u combine results in one switch then yea i understand (i think).
i think if u dont break; then it carries on to the next one and RUNS it.
Code:
int main() {
int x = 4;
switch(x) {
case 4:
/* with no break; it goes and runs case 5 */
case 5:
/* same with this, it goes and runs case 6 */
case 6:
/* 4 and 5 can share same code and it stops at 6 */
break;
default :
return 1;
}
return 0;
}
i think thats how u do it
now if its 4, 5 or 6, u put what u want it to run in case 6
EDIT: yea it works i tried it