任务描述 编写一个程序,统计一篇文章中英文大写字母、小写字母、数字、空格以及其他字符的数量。输入输出要求输入: 三行字符串 a, b, c,每行长度不超过80个字符。输出: 五个整数,分别代表英文大写字母、小写字母、数字、空格以及其他字符的个数。代码实现cpp#include <stdio.h>#include <string.h>int main() {char ch[3][81];int i, j, sum = 0, sum1 = 0, sum2 = 0, sum3 = 0, sum4 = 0;for (i = 0; i < 3; i++) {for (j = 0; j < 81; j++) {scanf(&quot;%c&quot;, &amp;ch[i][j]);if (ch[i][j] == '\n') {break;}}ch[i][j] = '\0';}for (i = 0; i < 3; i++) {sum = sum + strlen(ch[i]);for (j = 0; ch[i][j] != '\0'; j++) {if (ch[i][j] >= 'A' &amp;&amp; ch[i][j] <= 'Z') {sum1 = sum1 + 1;} else if (ch[i][j] >= 'a' &amp;&amp; ch[i][j] <= 'z') {sum2 = sum2 + 1;} else if (ch[i][j] >= '0' &amp;&amp; ch[i][j] <= '9') {sum3 = sum3 + 1;} else if (ch[i][j] == ' ') {sum4 = sum4 + 1;}}}sum5 = sum - (sum1 + sum2 + sum3 + sum4);printf(&quot;%d %d %d %d %d\n&quot;, sum1, sum2, sum3, sum4, sum5);return 0;}总结代码实现了对文章中各类字符的统计。通过这次练习,我加深了对字符操作和循环控制的理解。同时,我也意识到在编写代码时,清晰的逻辑和良好的代码风格是非常重要的。