#include <stdio.h>
int main()
{
int ix;
unsigned hits = 0;
for (ix=0; ix < 128; ix++)
{
if (ix % 4 == 0)
continue;
hits++;
}
printf("%u hits\n",hits);
return;
}
这不是编程问题,我没有这样的代码。但我对处理此类问题的数学方法感兴趣。 printf返回“ 96次命中” 我的问题是,有没有计算循环的“点击数”的公式?