Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 287 Bytes

7-26-字符串字母个数.md

File metadata and controls

17 lines (9 loc) · 287 Bytes

字符串中a和d的个数

编写程序,输入一个字符串,分别统计输出该字符串中的字母a和d的个数。

输入输出格式要求:

输入格式:string回车

例如:

输入:thedaythemonththeyear123回车

输出:a:2,d:1

输入:a

输出:a:1,d:0