COROANA TE ROG!!!
1
#include<iostream>
using namespace std;
int main(){
int n, unu, doi;
cin>>n;
if (n>=2){
n--;
cin>>unu;
while (n!=0){
cin>>doi;
n--;
}
}
cout<<(float)((unu+doi)/2);
return 0;
}
2
#include<iostream>
using namespace std;
int main(){
int n, nr=0, x;
cin>>n;
cin>>unu;
while (n!=0){
cin>>x;
if(x%2==0&&x%3==0) nr=nr*10+x;
n--;
}
if (nr==0) cout<<"nu exista";
else { while (nr!=0) {cout<<nr%10; nr/=10;}}
return 0;
}
3
#include<iostream>
using namespace std;
int main(){
int n, v[101], neg=0, poz=0, nul=0;
cin>>n;
for(int i=1;i<=n;i++) {cin>>v[i]; (v[i]==0)?nul++:(v[i]>0)?poz++:neg++;}
cout<<neg<<' '<<poz<<' '<<nul;
return 0;
}