C-study/02/4/4.c

12 lines
175 B
C
Raw Permalink Normal View History

#include<stdio.h>
#include<ctype.h>
int main()
{
char a;
scanf("%c",&a);
if (a == toupper(a)) printf("%c", tolower(a));
else printf("%c", toupper(a));
return 0;
}