Toggle navigation
Courses
問題
標籤
用戶
AD 20161124 exercise 1
0
喜歡
0
不喜歡
4.1k
瀏覽
請撰寫一個程式,使用者會輸入一行字元,換行字元代表輸入結束,請計算所有的輸入當中有多少個英文字母,多少個數字,以及多少個其他的字元,並依照範例的格數輸出。
Sampile input:
1234567890ancdefghijklmnopqrstuvwxyz~!@#$%^&*()_+
Sample output:
digit:10
alphabet:26
other:13
[練習]
Coding (C)
-
最新提問
11月 24, 2016
分類:
作業
|
用戶:
Shun-Po
(
18k
分)
ID: 17667 -
從幾時開始:
無限制
-
到幾時結束:
無限制
重新分類
11月 24, 2016
用戶:
Shun-Po
|
4.1k
瀏覽
評論
0
0
Called for Help
請
登錄
或者
註冊
後再添加評論。
65
個回答
0
喜歡
0
不喜歡
內容已隱藏#include <stdio.h>
#include * ** *** * * *
#include <ctype.h>
int main()
{
* **** * * * ****** * * c;
** * * ** * * * x = 0,y = 0,z = 0;
* * * * *** * * * * * * * ** * * **** &c);
* **** ** * *** * ** *** * * ** != '\n')
* * *** * * * *** **