题解 | #牛牛的西格玛#
牛牛的西格玛
http://www.nowcoder.com/practice/c6b750ee8853484f8dbf14b9531b501f
int main()
{
int n = 0;
scanf("%d ",&n);
int sum = 0;
int i = 0;
for(i = 0;i<=n;i++)
{
sum+=i;
}
printf("%d",sum);
return 0;
}