Find count of negative numbers , count of zeros , maximum valued negative number , minimum valued positive number and product of non - zero numbers
int negmax = Integer . MIN_VALUE ; int posmin = Integer . MAX_VALUE ; int count_neg = 0 , count_zero = 0 ; int product = 1 ; for ( int i = 0 ; i < n ; i ++ ) {