Guest User

Untitled

a guest
Dec 20th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int t, i = 2;
  8.  
  9. cin >> t;
  10.  
  11.  
  12. while (i <= t)
  13. {
  14. if (t%i == 0)
  15. {
  16. printf("%d", i);
  17. t = t / i;
  18. if (t>1)
  19. printf(*");
  20. }
  21. else
  22. i = i + 1;
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment