프로그래머스 C# 외계행성의 나이(Linq의 Concat 활용)
C#으로 using System; public class Solution { public string solution(int age) { string answer = ""; while(age != 0) { answer = (char)(age%10 + 97)+answer; age = age / 10; } return answer; } } ///// using System; using System.Linq; public class Solution { public string solution(int age) { string answer = string.Concat(age.ToString().Select(x => (char)(Convert.ToInt32(x.ToString()) + 97))); return an..
2023.06.26