#include int main(){int n,s=0; scanf("%d",&n); while(n) {s+=n%10; n/=10; } printf("%d\n",s); return 0; }
你这要求是什么语言啊