#includevoid max1max2(int A[],int n,int &max1,int &max2){ int i; max1=max2=-32768; for (i=0;i if (A[i]>max1) {max2=max1;max1=A[i];} }