Home > Back-end >  In the window to run don't show!!
In the window to run don't show!!

Time:12-21

As shown in figure
#include
Int main ()
{
Int I, n, t;
Int a, [10].
Printf (" Enter n: ");
The scanf (" % d ", & amp; n);
Printf (" please enter the number: % d ", n);
for (i=0; I & lt; n; I++)
The scanf (" % d ", & amp; A [I]);
for (i=0; I=n/2; I++)
{
T=a [I];
A [I]=a/n - 1 - I;
A [n - 1 - I]=t;
}
for (i=0; I & lt; n; I++)
Printf (" % d ", a [I]);
Printf ("/n ");
return 0;
}

CodePudding user response:

The
for(i=0; I=n/2; I++)//can't use=, if use should also be==
Change
for(i=0; i<=n/2; I++)//want to use & lt;=

CodePudding user response:

reference 1st floor qybao response:
put
for(i=0; I=n/2; I++)//can't use=, if use should also be==
Change
for(i=0; i<=n/2; I++)//want to use & lt;=

Yes ah, didn't pay attention to see,,
  • Related