神 • 4天前
using namespace std; int main(){
int a,sum=0; cin>>a; while(a){ sum+=a%10; a/=10; } cout<<sum; return 0;
}
评论:
请先登录,才能进行评论