Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Programming questions, choose C language. What is read from the keyboard is the student's grades, which are stored in an integer array, as well as the highest score, the lowest score, and
Programming questions, choose C language. What is read from the keyboard is the student's grades, which are stored in an integer array, as well as the highest score, the lowest score, and
Master ()

{ int a[ 10],max,min,I;

Jige Double Street;

for(I = 0; I< 10; i++)

scanf("%d ",& ampa[I]); //Enter 10 integer.

max = min = a[0]; //Find the maximum value and put it in max and the minimum value in min.

for(I = 0; I< 10; i++)

{ if(a[I]& gt; max)max = a[I];

if(a[I]& lt; min); min = a[I];

}

ave = 0; //find the average score ave

for(I = 0; I< 10; i++)

ave = ave+a[I];

ave = ave/ 10.0;

Jigger = 0; //Pass rate Gige

for(I = 0; I< 10; i++)

if(a[I]& gt; 60) Gige++;

Jigger = Jigger/10.0;

printf("%d%d ",max . min);

Printf("%lf%lf ",Jige Street);

}