코딩테스트/[C#] 프로그래머스
[프로그래머스 | C# | Lv.0] 문자열의 뒤의 n글자
냠냠쿠
2023. 8. 28. 19:25
728x90
https://school.programmers.co.kr/learn/courses/30/lessons/181910
📝 나의 풀이
using System;
public class Solution {
public string solution(string my_string, int n) {
return my_string.Substring(my_string.Length - n, n);;
}
}
728x90