프로그래머스/Lv.0
[프로그래머스 C#] 접미사인지 확인하기
suniverse
2023. 9. 3. 15:57
using System;
public class Solution {
public int solution(string my_string, string is_suffix) {
int answer = 0;
answer = my_string.EndsWith(is_suffix) ? 1 : 0;
return answer;
}
}