#include<stdio.h>
int main()
{
char str[1000],ch;
while(~scanf("%s%c",str,&ch))//巧用scanf函数不能输出空格的特点,ch是用来处理空格的
{
str[0]=str[0]-32;//将首字母的小写变大写
printf("%s%c",str,ch);//没有ch就会在句子后多一个空格
}
return 0;
}
#include<stdio.h>
int main()
{
char str[1000],ch;
while(~scanf("%s%c",str,&ch))//巧用scanf函数不能输出空格的特点,ch是用来处理空格的
{
str[0]=str[0]-32;//将首字母的小写变大写
printf("%s%c",str,ch);//没有ch就会在句子后多一个空格
}
return 0;
}