Untitled

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

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