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(){ int p,num=0,abc=0,other=0,i; * *** * ** * ** * ** a[1000];*** * * * * ** ** * * * ** * * **** * * * * * * *** * * * *** ** * * * * for(i=0;i<p;i++)