Please post your code in code tags.

Your problem statement and description of the problem are not helpful. Here's my sample run:

Please enter the number of which you want to squareroot:
51...