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);

CodePudding user response:

reference 1st floor weixin_46284757 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,,,,

Thank you very much, this vinegar I find for a long time,

CodePudding user response:

The
reference 3 floor CHXCHXKKK response:
printf (" % d \ n ", a [I]);==& gt;> Printf (" % d \ n ", min);

Thank you for your answer.

CodePudding user response:

refer to the second floor xws245925587 response:
# include & lt; stdio.h>
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;
}

Thank you for your answer.
  • Related