[프로그래머스] 양꼬치 (javascript)

몽슈뜨·2022년 11월 29일
0

programmers

목록 보기
25/62
post-thumbnail


🎯나의 풀이

function solution(n, k) {
    var answer = 0;
    service = Math.floor(n/10) * 2000;
    n = n * 12000
    k = k * 2000
    return (n+k)-service;
}
profile
개발자되면 맥북사줄께

0개의 댓글

Powered by GraphCDN, the GraphQL CDN