COROANA TE ROG!!!
Problema1
#include<iostream>
using namespace std;
int main(){
//nu a specificat in ce ordine sa fie afisate numerele deci am ales metoda "mai rapida" care face doar 50 de pasi
int x=-99;
while(x<=-1){
cout<<x<<' '<<-x<<' ';
x+=2;
}
return 0;
}
Problema2
#include<iostream>
using namespace std;
int main(){
int n, x, k=0;
cin>>n;
while(1<=n--){
cin>>x;
(x%3==0)?k++:k+=0;
}
cout<<k;
return 0;
}