> 其他 >
c语言将一个正整数分解质因数,望高手帮我详细解释一下程序?
#include
void main()
{int i,n;
printf("input the n:");
scanf("%d",&n);
printf("%d=",n);
for(i=2;i
人气:295 ℃ 时间:2020-05-04 18:12:20
解答
#include
void main()
{int i,n;
printf("input the n:"); //输出input the n:
scanf("%d",&n);//输入一个数值
printf("%d=",n);//打印你刚才输入的数值
for(i=2;ifor中的i自加的条件是n除i的余数不为零
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版