例38 首字母大写

1.问题描述

输入一个英文句子,将每个单词的首字母改成大写。

2.问题示例

输入s="i want to go home",输出"I Want To Go Home"。输入s="we want to go to school",输出"We Want To Go To School"。

3.代码实现

4.运行结果

输入:i am from bupt

输出:I Am From Bupt