Skip to content

Commit

Permalink
이슈 #307에서 솔루션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent 47a1898 commit c6c9552
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Programmers/배열의_평균값.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <string>
#include <vector>

using namespace std;

double solution(vector<int> numbers) {
double avg = 0;
for (int n : numbers) {
avg += n;
}

return avg / numbers.size();
}

0 comments on commit c6c9552

Please sign in to comment.