[코딩뱃] [자바] Warmup - 1단계 : close10 문제
https://codingbat.com/prob/p172021 CodingBat Java Warmup-1 close10 Given 2 int values, return whichever value is nearest to the value 10, or return 0 in the event of a tie. Note that Math.abs(n) returns the absolute value of a number.close10(8, 13) → 8close10(13, 8) → 8close10(13, 7) → 0Go...Save, Compile, Run (ctrl codingbat.com = 문제 번역 = 2개의 int 값이 주어지면 값 10에 가장 가까운 값을 반환하거나 동점인 경우 0을 반환합니다. M..
코딩테스트/Coding Bat
2021. 9. 28.