文件名称:4-3
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:125.77kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
对输入的一行字符分类统计
利用 while 循环和 else if 多分支结构编写一个程序。该程序用来统计输入的一行字符中大小写字母的个数、数字0~9的个数、空格个数及其它字符个数。-Separate statistics on the input line characters to write a program using a while loop else if multi-branch structure. The program for statistical input line character uppercase and lowercase letters the number of digits 0 to 9 the number, the number of spaces and the number of characters. For example: keyboard input: aldkfjQWEklj12 the FDA the FK*. The screen will be divided into four lines of display: English character is: 17 the Digit character is: 2 the Space character is: 2 Other character is: 1 [Tips] The input data for the line breaks when the end of the input data input requirements: character data output Requirements: The sample input and output sample respectively by upper and lower case letters, numbers, spaces and other characters in output of the survey results, see the output: Input Sample: 123* ABC $ abc the Output the Sample: English character is: 6 the Digit character is: the Space character is: 2 Other character is: 2
利用 while 循环和 else if 多分支结构编写一个程序。该程序用来统计输入的一行字符中大小写字母的个数、数字0~9的个数、空格个数及其它字符个数。-Separate statistics on the input line characters to write a program using a while loop else if multi-branch structure. The program for statistical input line character uppercase and lowercase letters the number of digits 0 to 9 the number, the number of spaces and the number of characters. For example: keyboard input: aldkfjQWEklj12 the FDA the FK*. The screen will be divided into four lines of display: English character is: 17 the Digit character is: 2 the Space character is: 2 Other character is: 1 [Tips] The input data for the line breaks when the end of the input data input requirements: character data output Requirements: The sample input and output sample respectively by upper and lower case letters, numbers, spaces and other characters in output of the survey results, see the output: Input Sample: 123* ABC $ abc the Output the Sample: English character is: 6 the Digit character is: the Space character is: 2 Other character is: 2
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.