Home > Back-end >  Requests various bosses, why is the minimum?? !!!!!!!!!!
Requests various bosses, why is the minimum?? !!!!!!!!!!

Time:03-29

#include
Int main ()
{
Int a [20], I;
Int t=70;
Int d=100;
Int Max=a, [0].
Int min=a, [0].
Double business=0, sum=0;

Printf (" twenty judge result is: ");

for(i=0; i<20; I++)
{
A [I]=rand () % (d - t) + t;
Printf (" % d ", a [I]);

}
printf("\n");
for(i=0; i<20; I++)
{
If (maxMax=a, [I].
If (min> A [I])
Min=a, [I].
Sum=sum + a [I];
}

Business=(sum - Max - min)/18;
Printf (" maximum value for: % d \ n ", Max).
Printf (" minimum value is: % d \ n ", min);
Printf (" final average is: % d ", business);
printf("\n");

return 0;
}
  • Related