코딩테스트/[C#] 프로그래머스
[프로그래머스 | C# | Lv.0] 접두사인지 확인하기
냠냠쿠
2023. 8. 30. 19:03
728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181906
📝 나의 풀이
using System;
public class Solution {
public int solution(string my_string, string is_prefix) {
int answer = 0;
if(my_string.StartsWith(is_prefix)==true) answer=1;
return answer;
}
}
728x90