MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / main

Function main

codes/cpp/Code_2_01_3.cpp:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int main() {
5 int N, A[59];
6 int Answer = 0;
7 cin >> N;
8 for (int i = 1; i <= N; i++) {
9 cin >> A[i];
10 Answer += A[i];
11 }
12 cout << Answer << endl;
13 return 0;
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected