#define N 10 // defines the number of array elements.
Master ()
{
int a[N],I,max
Printf ("Please enter %d array elements: \n", n);
scanf("%d ",& ampa[0]);
max = a[0]; //Temporarily record the first value as the maximum value.
for(I = 1; I & ltn;; I++)// Store the entered numbers in an array.
{
scanf("%d ",& ampa[I]);
if(a[I]& gt; Max)// Find the maximum value
max = a[I];
}
for(I = 0; I & ltn;; i++)
{
printf("%-5d ",a[I]); //Output array elements
If((i+ 1)%3==0)// 3 elements per line.
printf(" \ n ");
}
printf(" \ n ");
Printf ("Maximum element is %d\n", max); //Output the maximum value
}