?? zidian1.c
字號:
#include<iostream.h>
#include<stdlib.h>
void main()
{
int count;
int Scount[10];
int doda;
int yee;
memset(Scount,0,sizeof(Scount));
cin>>count;
for(int i=1;i<=count;i++)
{
yee=i;
while(yee>0)
{
doda=yee%10;
yee/=10;
Scount[doda]++;
}
}
for(i=0;i<10;i++)
cout<<Scount[i]<<endl;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -