#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
int i = 0;
int count = 1;
for (i = 1; i <= 100; i++)
{
if (i % 10 == 9||i / 10 == 9)
count++;
}
printf("%d", count);
}
//09 19 29 39 49 59 69 79 89 99 (99算出现2次数字9)
//90 91 92 93 94 95 96 97 98