Switch/case help

Is there a way to check for a range of values in a case statement? Say I want one output for values from 12 to 36 is there a way or should I be using If/then? Thanks.

Edit: I was wrong, it's supported in GCC.

I'm not sure about the portability/global legality, but

  switch (x) {
    case 12 ... 36:
      // do something
    break;

(note the spaces)

I'm not sure about the portability/global legality, but
Code:
switch (x) {
case 12 ... 36:
// do something
break;
(note the spaces)

Thanks, that seems to work. At least it compiles.