Write a program to compute the number of different letters in a string
Your program should first read the string using scanf(), then compute the number of different letters in this string. Note that 'a' and 'A' are the same.
The output consists of 26 lines, and each line has the number of times that letter appears in the string.
撰寫一個程式來計算字串中不同字母的數量
您的程式首先應使用scanf()讀取字串,然後計算此字串中不同字母的數量。 請注意,'a'和'A'是相同的。
輸出由26行組成,每行包含字母在字串中出現的次數。
A single line contains a string without any space character (except the line feed character at the end).
The string's length is less then 100.
單行包含沒有任何空格字元的字串(末尾的換行符號除外)。
字串的長度小於100。
Output the number of times that each letter appears, each in a line.
輸出每個字母出現的次數,每個字母都在一行中。
a33bc44d---666AB7C%%D
2 2 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
編號 | 身分 | 題目 | 主題 | 人氣 | 發表日期 |
沒有發現任何「解題報告」 |