1、实验三 函数应用的程序设计编写一函数,统计字符串中字母、数字、空格和其他字符的个数,在主函数中输入字符串并输出统计结果。(1)作出流程图(2)用值传送的方式实现函数调用,分别从键盘上输入三个不同字符串,并记录下运行的过程和结果。(3)用字符数组传送的方式实现函数调用,分别从键盘上输入三个不同字符串,并记录下运行的过程和结果。【字符传送】#includestdio.hint letter_num(char str50) int i,m,num=0; m=strlen(str); for(i=0;i=A&stri=a&stri=z) num+; return num;int number_num(
2、char str50) int i,m,num=0; m=strlen(str); for(i=0;i=0&stri=9) num+; return num;blank_num(s)int blank_num(char str50) int i,m,num=0; m=strlen(str); for(i=0;im;i+) if(stri= ) num+; return num;int others_num(char str50) int m; m=strlen(str)-letter_num(str)-number_num(str)-blank_num(str); return m;main()char s50;printf(please enter:);gets(s);printf(the number of letter is %dn,letter_num(s);printf(the number of number is %dn,number_num(s);printf(the number of blank is %dn,blank_num(s);printf(the number of others is %dn,others_num(s);