2.程序源代码:
/* zheng int is divided yinshu*/
main()
{
int n,i;
printf("please input a number:");
scanf("%d",&n);
printf("%d=",n);
for(i=2;i<=n;i++)
{
while(n!=i)
{
if(n%i==0)
{ printf("%d*",i);
n=n/i;
}
else
break;
}
}
printf("%d",n);}