Search

향상된 case 문

생성일
2023/09/20 02:09
태그
조건문
구분
짤막자료
switch (i) { case 0 -> backTracking(depth + 1, value + numbers[depth]); case 1 -> backTracking(depth + 1, value - numbers[depth]); case 2 -> backTracking(depth + 1, value * numbers[depth]); case 3 -> backTracking(depth + 1, value / numbers[depth]); }
JavaScript
복사