Răspuns:
1.
#include<iostream>
using namespace std;
int a,b,c,d,s=0;
int main()
{cin>>a>>b>>c>>d;
if(a>0) s=s+a;
if(b>0) s=s+b;
if(c>0) s=s+c;
if(d>0) s=s+d;
cout<<s;
return 0;
}
2.
#include<iostream>
using namespace std;
int nr;
int main()
{cin>>nr;
if(nr%3==0 || nr%5==0) cout<<"Da";
else cout<<"Nu";
return 0;
}