易知:9 19 29 39......99 90 91 92 93.......99中的九的个数为20个9
#include<stdio.h>标签:count,10,int,打印,整数,99,++,includeint,100 From: https://blog.51cto.com/u_15899086/6004413
int main()
{
int i=0;
int count=0;
for(i=1;i<+100;i++)
{
if(i/10==9)
count++;
if(i%10==9)
count++;
}
printf("count=%d",count);
return 0;
}