Advertisement
a53

FRadical

a53
Mar 14th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. void FRadical(int n,int &x,int &y)
  2. {
  3. for(y=1;y<=n;++y)
  4. if(n%y==0)
  5. if(sqrt(n/y)==(int)(sqrt(n/y)))
  6. {
  7. x=sqrt(n/y);
  8. return;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement