2025-02-27 20:06:15 +08:00

20 lines
237 B
C

#include <stdio.h>
int main(){
int num, n=2, first = 1;
scanf("%d", &num);
printf("%d=",num);
while(num > 1){
if(num%n==0){
first?printf("%d", n):printf("*%d", n);
first=0;
num/=n;
}else{
n++;
}
}
return 0;
}