Skip to main content
1 of 2
user avatar
user avatar

#C, 70 bytes

i,s;t(n){for(i=n;i;)for(n=i--;n;n=(n-n%10)/10)s+=n%10;printf("%d",s);}
user56344