#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
void check_count();
void combineNum(int x, int y, int z,int num);
void printDiamond(int x, int y);
void purchaseChicken();
float calculatePi();
void primeJudge();
void perfectJudge();
void intimacyNumber();
void automorphic();
void narcissisticNumber();
void palindromeNumber();
void pythagoreanNumber();
void GCD();
void LCM();
void spuareRoot();
void primeFactor();
int main() {
primeFactor();
return 0;
}
void primeFactor() {
int num=0;
printf("请输入一个正数:\n");
scanf("%d", &num);
printf("%d=", num);
for (int i = 2; i < num;i++) {
while (num!=i) {
if (num%i==0) {
printf("%d*",i);
num /= i;
}
else {
break;
}
}
}
printf("%d\n",num);
}