Lucian_Adrian

#377 DifiMin

Nov 2nd, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int n , a , b;
  6. cin >> n;
  7. for(int d = 1; d*d <= n; d++)
  8. if(n % d == 0)
  9. a = d, b = n/d;
  10. cout << a << " " << b;
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment