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