#include<stdio.h> int main() { int lower = 0, uper = 0,num=0,blank=0,other=0; char str[3][80]; for (int i = 0; i<3; i++) { gets_s(str[i]); for (int j = 0; j<80; j++) { if (str[i][j]=='\0')break; if (str[i][j]> 'a'&&str[i][j]<'z') { lower += 1; } else if (str[i][j]>'A'&&str[i][j]<'Z') { uper += 1; } else if (str[i][j]>'0'&&str[i][j] < '9') { num += 1; } else if (str[i][j] == ' ') { blank += 1; } else { other += 1; } } } printf("lower:%d\nuper:%d\nnum:%d\nblank:%d\nother:%d",lower,uper,num,blank,other); return 0;}