public class t111 {
/**
*
* 将一个正整数分解质因数。
*/
public static void main(String args[]) {
Scanner input = new Scanner(System.in);
System.out.println("请输入一个整数按回车确认");
int num = input.nextInt();
System.out.print(num + "=");
if (num == 1) {
System.out.println(1);
}
for (int i = 2; i < num + 1; i++) {
if (num % i == 0) {
System.out.print(i);
num = num / i;
i--;
if (num != 1) {
System.out.print("*");
}
}
}
}
}