編寫程序,判斷從鍵盤輸入的字符中數字的個數 大寫字母的個數,小寫字母的個數,其餘字符的個數,以*做爲字符輸出的標誌

#include <stdio.h> #include <string.h> int main() { char x[1000]; printf("請輸入字符串:\n"); gets(x); int l=strlen(x); int a=0,b=0,c=0,d=0; for(int i=0;i<l;i++) { if(x[i]=='*'){break;} else if(x[i]>='1'
相關文章
相關標籤/搜索