题解 | #简写单词#
简写单词
https://www.nowcoder.com/practice/0cfa856bf0d649b88f6260d878f35bb4
#include <stdio.h> #include<string.h> int main() { char s[101]; while(scanf("%s",s)!=EOF) { s[0] = s[0]>=97?s[0]-32:s[0]; printf("%c",s[0]); } return 0; }
简写单词
https://www.nowcoder.com/practice/0cfa856bf0d649b88f6260d878f35bb4
#include <stdio.h> #include<string.h> int main() { char s[101]; while(scanf("%s",s)!=EOF) { s[0] = s[0]>=97?s[0]-32:s[0]; printf("%c",s[0]); } return 0; }
相关推荐