코테공부
[프로그래머스] 문자열의 뒤의 n글자
meltingmelvin
2024. 2. 19. 04:28
https://school.programmers.co.kr/learn/courses/30/lessons/181910
using System;
public class Solution {
public string solution(string my_string, int n) {
string answer = "";
int i=my_string.Length-n;
while(i<my_string.Length)
{
answer += my_string[i];
i++;
}
return answer;
}
}