U E D R , A S I H C RSS

데블스캠프2006/월요일/연습문제/switch/윤영준


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 :" <
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:04
Processing time 0.0112 sec