public static void main(String args[] ){
int arr[]={1,9,7,8,6,4,5,3,2,0}, min=Integer.MAX_VALUE, max=Integer.MIN_VALUE;
for(int i=0; i
max=arr[i];
}
if(arr[i]
}
}
System.out.println("MAX="+max+", min="+min);
}