void main()
{
int a[ 10]; //Define an array A with 10 integer data.
int I; //define the integer variable i.
for(I = 0; I< 10; I++) // The loop starts with i=0. Every time the loop body is executed, I will add 1, as long as I.
scanf("%d ",& ampa[I]); //For the loop body, initialize the array A, enter the number 10, and assign them to a[0], a[ 1] ... a [9] in turn.
printf(" \ n "); //output a newline character, that is, a newline character. ...
for(I = 0; I< 10; I++)// The loop starts with i=0. Every time the loop body is executed, I will add 1, as long as I.
printf ("%d ",a[I]); //loop body, input array a, output [0], a[ 1] ... an array element of [9] 10 is arranged in sequence.
printf(" \ n "); //Output a newline, that is, a newline ... "\n" is a newline.
}//End of program
The previous for is to assign a value to the array a.
The latter is used to output the values of elements in array a.
Brother just started to learn, study hard, C language is still more useful.