#include<bits/stdc++.h> using namespace std; int main() { int n,i=2; cin>>n; cout<<n<<"="; while(n) { if(n%i==0) { n=n/i; if(n==1) { cout<<i; break; } else cout<<i<<"*"; } else i++; } return 0; }
Double click to view unformatted code.