摘要: 计算在区间1到n的所有整数中,数字x(0<x<9)出现的次数?例如在1到11中,1出现了4次。 #include<stdio.h> #include<stdlib.h> int CountX(int n,int x) { int yushu,res; int count = 0; if(n == 0 阅读全文
posted @ 2022-07-13 21:17 kangobs 阅读(76) 评论(0) 推荐(0)