#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<windows.h>
int main()
{
int i = 0 , count = 0;
for (i = 0; i <= 100; i++)
{
if (i / 10 == 9)
count++;
if (i % 10 == 9)
count++;
}
printf("从1到100里数字9的个数为:%d\n", count);
system("pause");
return 0;
}