Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
376 B
0
Indexable
Never
//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int count = n;
    int summ=0;
    for (int n = 0; n > count; n++)
    {

        cin >> n;
        summ += n;
        cout << summ;
    }
    
}