Home > Back-end > What a great god can help the younger brother take a look at this code, is the minimum value.
What a great god can help the younger brother take a look at this code, is the minimum value.
Time:09-19
#include Int main () { Int I, n, a [10000], min; The scanf (" % d ", & amp; n); for(i=0; iMin=a, [0]. for(i=0; i{
If (min> A [I]) Min=a, [I]. } Printf (" % d \ n ", a [I]); return 0; }
CodePudding user response:
Int main () { Int I, n, a [10000], min; The scanf (" % d ", & amp; n); for(i=0; iMin=a, [0]. for(i=0; i{ If (min> A [I]) min=a, [I]. } Printf (" % d \ n ", min); return 0; } You made this mistake,,,,
CodePudding user response:
#include Int main () { Int I, n, a [10000], min; The scanf (" % d ", & amp; n); Min=0; for(i=0; i{the scanf (" % d ", & amp; A [I]); If (min> A [I]) Min=a, [I]. } Printf (" % d \ n ", min);//========="focus on this return 0; }
CodePudding user response:
Printf (" % d \ n ", a [I]);==& gt;> Printf (" % d \ n ", min);