알고리즘
1. 평균 구하기
풀이:
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
// arr_len은 배열 arr의 길이입니다.
double solution(int arr[], size_t arr_len) {
double answer = 0;
double total =0 ;
for (int i = 0; i<arr_len; i++){
total += arr[i];
}
answer = total/arr_len;
return answer;
}