>>436
>>438の言うとおりの場合もあるんだけど、
int th[] = {0,100,500,550,980,1000,-1};

for(i=0;th[i]>=0 && !(th[i] <= in && in < th[i+1]);i++);
switch(i) {
  case 0: ...
  case 1: ...
}