[프로그래머스] [LV1] 내적

업데이트:

📚 내적

링크📎 : https://programmers.co.kr/learn/courses/30/lessons/70128

난이도 ⭐️

📖 문제

이미지 이미지

📝 내 풀이

class Solution {
    public int solution(int[] a, int[] b) {
        int answer = 0;
        
        for(int i = 0 ; i < a.length; i++){
            answer += a[i]*b[i];
        }
        
        return answer;
    }
}

Super easy…

끝-!

댓글남기기