绝地无双
1.#include<stdio.h>int main(){int a,b,c,d,f;char e;a=b=c=f=0;printf("请输入一行字符: \n");e=getchar();do{if(('A'<=e&&e<='Z')||('a'<=e&&e<='z'))a++;else if ('0'<=e&&e<='9')b++;else if (e==' ')c++;elsef++;}while((e=getchar())!='\n');printf("字母个数%d,数字个数%d,空格个数%d,其余符号个数%d\n",a,b,c,f);return 0;}2.#include <stdio.h>void main(){unsigned long a=1,n=1,s=0;do{a*=n;/*求阶乘*/s+=a;/*求和*/n++;}while(n<=13);printf("%u\n",s);}