# include void main() { int n,i; printf("\nplease input a number:\n"); scanf("%d",&n); printf("%d的质因数: ",n); for(i=2;i<=n;i++) { while(n%i==0) {printf("%d ",i);n/=i;} } printf("\n"); }