#include <stdio.h>
#include <stdlib.h>
void main()
{
int n,i;
int exert=0;
printf("请输入一个整数: ");
scanf("%d",&n);
for (i=1;i<=100;i++)
{
if (i%n==0)
{
printf("%d\t",i);
exert++;
}
if (exert%5==0)
{
printf("\n");
}
}
printf("\n总共有%d个能够被%d整除\n", exert, n);
system("pause");
}
12-10
7061
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-13
7620
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-31
182
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)