#include<stdio.h>
int max(int a[],int k)
{
int MAX=a[0],i;
for(i=0;i<k;i++)
if(a[i]>MAX)MAX=a[i];
return(MAX);
}
void main()
{
int a[100]={0},n,i;
printf("please input the number of intrger:\n");
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",a[i]);
for(i=0;i<n;i++)
printf("the max of the numbers is:\n",max(a,n));
}
.......