#define _CRT_SECURE_NO_WARNINGS 1 
#include<stdio.h> 
int main()
{
 int i = 0;
 int count = 0;
 for (i = 0; i <= 100; i++)
 {
  if (i % 10 == 9)
  {
   count++;
  }
  if (i / 10 == 9)
  {
   count++;
  }
 }
 printf("%d\n", count);
 system("pause");
 return 0;
}

posted on 2018-04-03 22:55  lsiyu  阅读(502)  评论(0)    收藏  举报