Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
178 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int a, b ;
    cin >> a;
    b = 0;
    
    for (int i = 0; i <= a; i++)
    {
        b += i;
    }
    cout << b;
}