Home > Back-end >  You do me a favor
You do me a favor

Time:11-01

CodePudding user response:

C language python will do

CodePudding user response:

# include
# define MAX (50 class size changes themselves)
Void main ()
{
Int stu_num (MAX), I;
Int a=0, b=0, c=0;
Printf (" please enter % d a student's result: \ n ", MAX).
for(i=1; i<=MAX; I++)
{
The scanf (" % d ", & amp; Stu_num [I]);
}
for(i=1; i<=MAX; I++)//the number of statistics in every score know tao
{
If (stu_num [I] & gt;=85 & amp; & Stu_num [I]
=100)a++;
Else if (stu_num [I] & gt;=60 & amp; & Stu_num [I] <85)
B++;
The else
C + +;
}
Printf (" 85=& lt; Mark & lt;=100 the number of people for % d \ n ", a);
Printf (" 60=& lt; Mark & lt; The number of 85 for % d \ n ", b);
Printf (" mark & lt; The number of 60 for % d \ n ", c);
getchar();
getchar();
}
  • Related