Untitled

 avatar
unknown
c_cpp
a year ago
153 B
22
Indexable
#include <cstdint>
#include <iostream>
using namespace std;
 
int main() {
    uint64_t n;
    cin >> n;
    cout << n * (n + 1) / 2 << "\n";
}
Editor is loading...