Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
153 B
19
Indexable
Never
#include <cstdint>
#include <iostream>
using namespace std;
 
int main() {
    uint64_t n;
    cin >> n;
    cout << n * (n + 1) / 2 << "\n";
}