# 陳列 ```cpp= #include<iostream> using namespace std; int main() { char money[10]={0}; int i,b; int a=0; int c=0; cin>>b; while(b>10){ cin>>b; } i = 0; while( i < b) { cin>>money[i]; cout << i << " : " << (int)money[i] << endl; i++; if ('Z'>=money[i]>='A' || 'z'>=money[i]>='a') a++; if ('9'>=money[i]>='0') c++; } cout<<endl<<a<<endl<<c; return 0; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up