#include<stdio.h>
#include<math.h>
#define n 5
int main()
{
int i;
int temp;
int num = 745;
int count[10] = {0};
for(i = 1;i <= num;i ++){
temp = i;
while(temp > 0){
count[temp % 10] ++;
temp = temp / 10;
}
}
for(i = 0;i < 10;i ++){
printf("%4d",count[i]);
}
putchar('\n');
return 0;
}
#include<math.h>
#define n 5
int main()
{
int i;
int temp;
int num = 745;
int count[10] = {0};
for(i = 1;i <= num;i ++){
temp = i;
while(temp > 0){
count[temp % 10] ++;
temp = temp / 10;
}
}
for(i = 0;i < 10;i ++){
printf("%4d",count[i]);
}
putchar('\n');
return 0;
}