/*
1. 문자 1개 선언
2. 문자 1개 입력 받음
3. if문으로 대문자 -> 소문자 , 소문자 -> 대문자 출력
4. else 입력값 영문자 아닌 경우, none 출력
*/

#include <stdio.h>

int main() {
    char x;
    scanf("%c", &x);
    if (x >= 'a' && x <= 'z') {
        printf("%c", x + ('A' - 'a'));
    }
    else if (x >= 'A' && x <= 'Z') {
        printf("%c", x - ('A' - 'a'));
    }
    else {
        printf("none");
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: