答案

爱学习的皮卡丘  •  4天前


include<bits/stdc++.h>

using namespace std; int main(){

int a,j=0;
cin>>a;
cout<<a<<"=";
for(int i = 2;i <= a;i++){
	while(a%i==0){
		if(j==0){
			cout<<i;
			a=a/i;
			j=1;
		}
		else if(j==1){
			cout<<"*"<<i;
			a=a/i;
		}
	}
}
return 0;

}


评论:

请先登录,才能进行评论