#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:
Thefor(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: