-
[프로그래머스] 홀짝에 따라 다른 값 반환하기알고리즘 노트 2023. 10. 11. 09:50
n의 홀짝 여부를 판단 후 수행 로직을 다르게 구현하면 된다.
'알고리즘 노트' 카테고리의 다른 글
[프로그래머스] flag에 따라 다른 값 반환하기 (0) 2023.10.11 [프로그래머스] 조건 문자열 (0) 2023.10.11 [프로그래머스] 공배수 (0) 2023.10.11 [프로그래머스] n의 배수 (0) 2023.10.11 [프로그래머스] 두 수의 연산값 비교하기 (1) 2023.10.10