1.
#include <iostream>
using namespace std;
int main()
{ int i,contor=0,n;
for(i=0;i<4;i++)
{
cout<<"nr=";cin>>n;
if(n%2!=0)
contor++;
}
cout<<contor<<" numere impare";
}
2.la 7x-5=0 progrmul returneaza valoarea x:5/7 din cate inteleg eu...
#include <iostream>
using namespace std;
int main()
{ int x;
cout<<"x=";cin>>x;
if(x>=3)
cout<<"e="<<5*x+8<<endl;
else
cout<<"e="<<8+7*x<<endl;
if(x<-5)
cout<<"f="<<5*x+5<<endl;
else
cout<<"x="<<float(5)/float(7);
}