Hacer un programa para ingresar una lista 10 números e informar el máximo de los negativos y el mínimo de los positivos. Ejemplo: 5, 8, 12, 2, -10, 15, -20, 8, -3, 24.
void main(){ int list_a[10]; int max_negative; int min_positive; // input and processing for(int i=0; i<10; i++){ cout << "Ingrese un numero." << endl; cin >> list_a[i]; // if is first element if(i==0){ if(list_a[i] > 0){ min_positive = list_a[i]; } else{ max_negative = list_a[i]; } } // if number bigger than max negative number if(list_a[i] > max_negative && list_a[i] < 0){ max_negative = list_a[i]; } // if number lower than min positive number if(list_a[i] < min_positive && list_a[i] > 0){ min_positive = list_a[i]; } } //