Summe der n natürlichen Zahlen
//Created by https://ashif.in
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n; //Take Input
int sum = n*(n+1)/2; //Calculate Sum
cout<<sum; //Print Sum
return 0;
}
Ashif Ali