eee


私信TA

用户名:dotcpp0667155

访问量:2427

签 名:

eee

等  级
排  名 1473
经  验 2813
参赛次数 13
文章发表 59
年  龄 18
在职情况 待业
学  校 世纪阳光
专  业

  自我简介:

eee

解题思路:

注意事项:

参考代码:

#include<bits/stdc++.h>

using namespace std;

int main()

{

    int n,s=0;

    cin>>n;

    for(int i=1;i<=n; i++)

    {

        s=s+i;

    }

    cout<<s;

    return 0;

}


 

0.0分

1 人评分

  评论区