课后作业,求最小值等题目答案
#include<stdio.h>
int main(void)
{
do
{ } while(x!='\n'); x=getchar(); if((x>='A'&&x<='Z')||(x>='a'&&x<='z')) a++; else if(x>='0'&&x<='9') b++; else if(x=' ') c++; else d++; int a,b,c,d; char x; printf(" "); a=b=c=d=0;
printf("letter=%d,blank=%d,digit=%d,other=%d\n",a,b,c,d);
return 0;}