1.
int n, uc, ap=1;
cin>>n;
uc = n%10;
n=n/10;
while(n>0){
if(n%10 == uc) ap++;
n=n/10;
}
cout<<ap;
2.
int n, c, s=0;
cin>>n;
c=n;
while(n>0){
s=s+n%10;
n=n/10;
}
if(c%s == 0)
cout<<"Da";
else
cout<<"Nu";
3.
int cod, nr_p=0, nr_i=0, p_c, u_c;
cin>>cod;
u_c = cod%10;
while(cod>0){
if(cod<10) p_c = cod;
if(cod%10%2 == 0) nr_p++;
else nr_i++;
cod = cod / 10;
}
if(p_c+1 == u_c && nr_p == nr_i)
cout<<"corect";
else
cout<<"incorect";