#include <stdio.h>
#include <conio.h>
void main()
{
tbl_set();
scanf("%d",&a);
while (a > 0){
i=0;
while ( i < n){
if( a <= Q [i]){
printf("整理番号%d番の方は %d会場です\n", a, R[i]);
i = n;
}
else
i++;
}
scanf("%d",&a);
}
}
void tbl_set(){
Q[0] = 100;
Q[1] = 200;
Q[2] = 250;
Q[3] = 300;
Q[4] = 360;
R[0] = 401;
R[1] = 302;
R[2] = 101;
R[3] = 102;
R[4] = 301;
n=5;
}
|