Write a program that ask the user to input a serial character (max 1000). Prints a table showing how many time each digit appears in the number. You should see 'A' and 'a' as the same.
寫一個程式 求使用者輸入一字串(最大1000) 輸入字母出現的次數 (A跟a算一樣)
Example input
Write a program that ask the user to input a serial character. Prints a table showing how many time each digit appears in the number. You should see 'A' and 'a' as the same.
Example output
A 19 B 2 C 3 D 3 E 15 F 0 G 3 H 9 I 9 J 0 K 1 L 3 M 5 N 7 O 6 P 5 Q 0 R 10 S 10 T 13 U 5 V 0 W 3 X 0 Y 2 Z 0
Hidden content!#include <stdio.h>#include <stdlib.h>char string[1000];int ii,jj;int ** * ** * * **** * * * ** * * * * * * * * * * * * **int main(){ fgets(string,1000, stdin);