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(void){ int c,digit=0,alphabet=0,other=0; char string[100];* * * * * * * ** ** * * *** ** * ** **** * ** **** *** **** *** ***** c<strlen(string); c++)