Problem is with if block in both method
try:
 if(p[i]<min){
            min=p[i];
            custnum=i;
     }
and
  if(p[i]>max){
            max=p[i];
            custnum=i;
       }
store customer number who have min or max value..
1
solved Cannot find the highest and lowest