C语言程序,求一个数的分解因数/* Note:Your choice is C IDE */#include "stdio.h"void main(){\x09int a,i;\x09scanf("%d",&a);\x09for(i=2;i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 10:20:22
C语言程序,求一个数的分解因数/*Note:YourchoiceisCIDE*/#include"stdio.h"voidmain(){\x09inta,i;\x09scanf("%d",&a);\x
C语言程序,求一个数的分解因数/* Note:Your choice is C IDE */#include "stdio.h"void main(){\x09int a,i;\x09scanf("%d",&a);\x09for(i=2;i
C语言程序,求一个数的分解因数
/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
\x09int a,i;
\x09scanf("%d",&a);
\x09for(i=2;i
C语言程序,求一个数的分解因数/* Note:Your choice is C IDE */#include "stdio.h"void main(){\x09int a,i;\x09scanf("%d",&a);\x09for(i=2;i
#include "stdio.h"
void main()
{
int a,i;
scanf("%u",&a);
for(i=2; a != 1; i++ )
{
while ( a%i == 0 ) {
{
printf("%d",i);
if ( i != a ) {
printf("*");
}
a /= i ;
}
}
printf("\n");
}