Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
210 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

int main()
{
	int n;
	cin >> n;
	int gol;
	int sum = 0;
	for (int i = 0; i < n; i++)
	{
		cin >> gol;
		sum += gol;
	}
	cout << sum;
}
Leave a Comment