ProblemC:大文字と小文字の変更
1431 ワード
#include
int main()
{
int i=0;
char a[80];
gets(a);
while(a[i]!='\0')
{
if(a[i]>='a' && a[i]<='z') a[i]-=32;
++i;
}
printf("%s",a);
return 0;
}
転載先:https://www.cnblogs.com/chenlong991223/p/9931560.html