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