728x90
#include<stdio.h>
#include<ctype.h>
void main()
{
char c;
printf("문자 입력 : ");
scanf("%c", &c);
if(isupper(c))
printf("%c\n",tolower(c));
else if(islower(c))
printf("%c\n",toupper(c));
}
'it > programming' 카테고리의 다른 글
| [ C++ ] Call by reference 기법을 이용한 최대값 구하기 (0) | 2012.05.28 |
|---|---|
| [ C++ ] Call by reference 기법을 이용한 swap 함수 (0) | 2012.05.28 |
| [ C++ ] 사용자 정의 함수를 이용한 최대 공약수 구하기 (0) | 2012.05.28 |