void main(void)
{
int student10, i=0, a=0, b=0, c=0, d=0, f=0;
do{
cin >> studenti;

switch(studenti/10){
case 9 :
a++;
break;

case 8 :
b++;
break;
case 7 :
c++;
break;
case 6 :
d++;
break;

default :
if(studenti!=999)
f++;
break;
}

i++;

}while((studenti-1 != 999) && (i<10));
cout <<"A :" <
}

Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2006/월요일/연습문제/switch/윤영준
last modified 2021-02-07 05:29:04