#include<stdio.h>
#include<stdlib.h>
int main() {
int b = 0;
int Sum;
for (int a=1; a < 101; a++) {
if (a%10 == 9)
b+= 1;
if ((a / 10) % 10 == 9)
b+= 1;
}
Sum = b;
printf("%d\n",Sum);
system("pause");
return 0;
}
07-21
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交