728x90
https://school.programmers.co.kr/learn/courses/30/lessons/120893
📝 나의 풀이
using System;
public class Solution {
public string solution(string my_string) {
string answer = "";
for(int i=0; i<my_string.Length; i++){
if(Char.IsLower(my_string[i])==true){
answer += Char.ToUpper(my_string[i]);
} else {
answer += Char.ToLower(my_string[i]);
}
}
return answer;
}
}
728x90
'코딩테스트 > [C#] 프로그래머스' 카테고리의 다른 글
[프로그래머스 | C# | Lv.0] 영어가 싫어요 (0) | 2023.09.17 |
---|---|
[프로그래머스 | C# | Lv.0] 직각삼각형 출력하기 (0) | 2023.09.17 |
[프로그래머스 | C# | Lv.0] 주사위의 개수 (0) | 2023.09.17 |
[프로그래머스 | C# | Lv.0] 팩토리얼 (0) | 2023.09.14 |
[프로그래머스 | C# | Lv.0] 암호 해독 (0) | 2023.09.14 |