\\1-100数字中9的数量
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int x = 0;
int num = 0;
for (x = 1; x <= 100; x++)
{
if (x % 10 == 9)
{
num++;
}
if (x / 10 == 9)
{
num++;
}
}
printf("%d", num);
return 0;
}
标签:11,10,int,代码,练习,++,num From: https://www.cnblogs.com/ayue6/p/17742439.html