#31974: cpp ans


jasontw77661@gmail.com (Jason Chang)


#include <iostream>

using namespace std;

int main() {
    int n;
     while(cin >> n){
         int i = 1,temp = 1;
        while(i < n){
            temp = temp + i;
            i++;
        }
        cout << temp << endl;
     }

}