Răspuns:
a) 22222
b) 5 si numerele 1,2,3,4,5
c)
int main(){
int n,i,nr,x,s;
cin>>n; s=0;
for(i=1;i<=n;i++){
nr=1; cin>>x;
while(x>9){
nr=nr*10;
x=x/10;
}
s=s+x*nr;
}
cout<<s;
}
d)
int main(){
int n,i,nr,x,s;
cin>>n; s=0;
i=1;
do{
nr=1; cin>>x;
if(x>9)
do{
nr=nr*10;
x=x/10;
}while(x>9);
i++;
s=s+x*nr;
}while(i<=n);
cout<<s;
}