Răspuns :
Răspuns:
#include <iostream>
using namespace std;
int main() {
int n, nr =0;
do {
cout <<"n=";
cin >> n;
if(n % 2 == 1)
nr++;
}while(n != 0);
cout <<"numere impare citite: " << nr;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int a, b, nr;
int main ()
{
cin>>a;
while (a)
{
cin>>b;
if (b%2==1)
nr++;
a=b;
}
cout<<nr;
}