in console application.
Thanks in advance
There are a number of ways to do it, and Google will help you find the algorithms.
But we do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. So, I won't be pointing you at them.
Try it yourself, you may find it is not as difficult as you think!
This looks like a test of thinking about a problem more than coding it.
The OP question appears to be: Is a given number R the square root of another given number X.
Taking the square root of X is "forbidden".
...but multiplication, and checking for equality (within a tolerance) is allowed.
Edited 8-Nov-12 11:13am
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)