Răspuns:
PROBLEMA C++ >>
#include <iostream>
using namespace std;
int main()
{
int aux = 1;
int suma = 0;
int cnt = -1, negativ = 0;
while (aux != 0)
{
cout << "\n n = ";
cin >> aux;
if (aux < 0)
negativ++;
suma += aux;
cnt++;
}
cout << "\n Total: " << cnt;
cout << "\n Suma: " << suma;
cout << "\n Nr. negative: " << negativ;
}
PSEUDOCOD >>
Explicație: