#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <ctype.h>
int main()
{
char ch;
while ((ch = getchar()) != '\n')
{
if (islower(ch))
ch = toupper(ch);
else if (isupper(ch))
ch = tolower(ch);
if (isdigit(ch) != 0) // ch가 숫자인 게 True인가
ch = '*';
putchar(ch);
}
putchar(ch); // last '\n'
return 0;
}
tutorialspoint 웹에서 함수 확인 가능