👤

Va rog ma ajutati e urgent

Va Rog Ma Ajutati E Urgent class=

Răspuns :

#include <iostream>

using namespace std;

int main()

{

int element;

int counter = 0;

do {

 cin >> element;

 if (element > 0)

  counter++;

} while (element != 0);

cout << "In sir se afla " << counter << " numere pozitive.";

return 0;

}