Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int t, i = 2;
- cin >> t;
- while (i <= t)
- {
- if (t%i == 0)
- {
- printf("%d", i);
- t = t / i;
- if (t>1)
- printf(*");
- }
- else
- i = i + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment