👤

Un program care sa calculeaze cite numere negative impare.

Răspuns :

C++
#include <iostream>
using namespace std;
main()
{int n, i, v[100], nr=0;
cin>>n;
for (i=1; i<=n; i++)
cin>>v[i];
if (v[i]<0 && v[i]%2!=0)
nr++;
cout<<nr; }