分类: 信息化
2014-12-09 16:27:50
#include
int main()
{
int num, a;
int num1,num2,num3,num4,num5;
scanf("%d",&num);
printf("%d = ",num);
for(a=2;a<=num;)
{
if(num%a==0)
{
if(a
printf("%d * ",a);
num = num /a;
}
else
{
printf("%d\n",a);
break;
}
}
else
{
a++;
}
}
return 0;
}
如图;