Please write a program, the user will enter a line of characters, then the program will calculate number of digits, alphabets and another characters.
寫一個程式 輸入一個字串,計算字串裡的數字、英文字母和其他符號的次數。
Example input:
1234567890Ancdefghijklmnopqrstuvwxyz~!@#$%^&*()_+
Example output:
digit:10 alphabet:26 other:13
Hidden content!#include<stdio.h>#include<string.h>int main(){ ** * * * * ** * ** * * * * a[100];** ** * * * * * * * * * * * ***** * * * * ** * * * ** ** * *** ** * **** * * len = strlen(a),i,j,k,l,x = 0,y = 0,z = 0;