Răspuns:
1.
#include<iostream>
using namespace std;
int n,x,s;
int main()
{ cin>>n
while(n>0) {x=n%10;
if(x%2==0) s=s+x;
n=n/10;}
cout<<s;
return 0;
}
2.
#include<iostream>
using namespace std;
int x,n,nr;
int main()
{cin>>x;
cin>>n;
while(n!=0) {if(n<x) nr++;
cin>>n;}
cout<<nr;
return 0;
}