#include using namespace std;
int main() { int a, b = 0; cin >> a; for (int i = 1; i <= a; i++) { b = b + i; } cout << b; return 0; }
使用您的 蒙青创OJ 通用账户