1、
#include <stdio.h>
int main(void)
{
int i, j;
puts("please input an integer!");
printf("j = "); scanf("%d", &j);
for (i = 1; i <= j; i++ )
{
if (j % i == 0)
printf("%d ", i);
}
return 0;
}
标签:约数,puts,int,某一,循环,printf,main
来源: https://www.cnblogs.com/liujiaxin2018/p/14546609.html