链接:https://pan.baidu.com/s/1qDdBkFPakLtCvh8_W2wiog
提取码:x3zg
标签:post sum lock return namespace stream while cpp ddb
#include<iostream> using namespace std; int main() { long long n; int a,sum=0; cout<<"n="; cin>>n; do { a=n%10; sum+=a; n=n/10; }while(n!=0); cout<<"各个数位之和:"<<sum<<endl; return 0; }
链接:https://pan.baidu.com/s/1qDdBkFPakLtCvh8_W2wiog
提取码:x3zg
标签:post sum lock return namespace stream while cpp ddb
原文地址:https://www.cnblogs.com/kixiaoyuan/p/12702284.html