C#41 [프로그래머스(C#)]level1 약수의 합 정수 n을 입력받아 n의 약수를 모두 더한 값을 리턴하는 함수, solution을 완성해주세요. public class Solution { public int solution(int n) { int answer = 0; for (int j = 1; j 2020. 7. 13. [프로그래머스C#]leve1 문자열을 정수로 바꾸기 using System; using System.Collections.Generic; using System.Globalization; public class Solution { public int solution(string s) { int answer = 0; if(s.Length>=1&&s.Length 2020. 7. 13. [프로그래머스 level1]가운데 글자 가져오기 c# public class Solution { public string solution(string s) { string answer = ""; if(s.Length%2==0) { answer=s.Substring((s.Length/2)-1,2); }else { answer=s.Substring(s.Length/2,1); } return answer; } } 2020. 7. 3. [프로그래머스 leve1] 수박수박수 c# public class Solution { public string solution(int n) { string answer = ""; for(int i=0;i if(i%2==0) answer=answer.Insert(i,"수"); else answer=answer.Insert(i,"박"); } return answer; } } 2020. 7. 3. 이전 1 ··· 4 5 6 7 8 9 10 11 다음