求和的问题ACM

最后更新于:2022-04-01 09:47:01

~~~ #include <iostream> using namespace std; int main() { unsigned int sum; while (cin>>sum ) { cout<<(sum+1)*sum/2<<endl<<endl; } return 0; } ~~~  
';