[코딩뱃] [자바] Warmup - 1단계 : lastDigit 문제
https://codingbat.com/prob/p125339 CodingBat Java Warmup-1 lastDigit Given two non-negative int values, return true if they have the same last digit, such as with 27 and 57. Note that the % "mod" operator computes remainders, so 17 % 10 is 7.lastDigit(7, 17) → truelastDigit(6, 17) → falselastDigit(3, 113) → trueGo...S codingbat.com = 문제 번역 = 음이 아닌 두 개의 int 값이 주어지면 27과 57과 같이 마지막 숫자가 같으면 true를 반환..
코딩테스트/Coding Bat
2021. 9. 30.