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>int main(){* * * * * *** * *** ** ** * * str[500];* **** * * * * * * * * *** * ** * sizeof(str), stdin); * ** * * * ** * * * * ** * * * i=0; * ** ** * * * * * * * ** * d=0,a=0,o=0;