#include <stdio.h>
int main()
{
int cou=0;
for (int i = 1; i <= 100; i++)
{
if (i % 10 == 9 || i / 10 == 9)
{
cou++;
if (i % 10 == 9 && i / 10 == 9)
cou++;
}
}
printf_s("%d", cou);
return 0;
}
标签:cou,int,day3,数一下,100,main
来源: https://www.cnblogs.com/wzgmxy/p/15684953.html