题解 | #简写单词#
简写单词
https://www.nowcoder.com/practice/0cfa856bf0d649b88f6260d878f35bb4
#include <stdio.h>
#define N 100
int main() {
char str[N] = {0};
while (EOF != scanf("%s", str))
{
if (isupper(*str))
{
printf("%c", *str);
}
else
{
printf("%c", (*str) - 32);
}
}
return 0;
}
