Run ID:90005

提交时间:2024-09-07 17:05:53

# include<iostream> using namespace std; int main(){ int s; int n; while(cin >> n){ s = n*(n+1)/2; cout<<s; } return 0; }