Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 347 Bytes

File metadata and controls

16 lines (14 loc) · 347 Bytes

프로그래머스 Level1 : 연습문제 평균 구하기

class Solution {
    public double solution(int[] arr) {
        double answer = 0;
        for(int num: arr){
            answer+=num;
        }
        answer/=arr.length;
        return answer;
    }
}