20 lines
237 B
C
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;
|
|
}
|