Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. ios_base::sync_with_stdio(0);
  5. cin.tie(0);
  6. cout.tie(0);
  7. int n, max=0, min=1;
  8. cin>>n;
  9. for(int i=1; n%i==0; ++i) min++;
  10. for(int i=1; i<n; ++i) if (n%i!=0)max=i;
  11. cout<<min<<" "<<max;
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement