Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int radical(int a, int &x)
- {
- x=1;
- while((x*x)<a)
- {
- int nr=x;
- if((x*x)>a)
- {
- x=nr;
- break;
- }
- x++;
- }
- }
- int main()
- {
- int x;
- radical(20, x);
- cout<<x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement