코딩테스트연습/프로그래머스
프로그래머스(0) - 숫자 비교하기
YJDawn
2024. 3. 13. 13:25
- 숫자 비교하기
class Solution {
public int solution(int num1, int num2) {
int answer = 0;
if ( num1 == num2 ){
answer = 1;
}else{
answer = -1;
}
return answer;
}
}