Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
input "enter number";n% 'get an integer
r = 0 'set the root for zero
do 'loop
r = r + 0.1 'increase root by 0.1
loop until r * r >= n% 'check if the r * r >= n%
'if it is, then exit loop
if r * r > n% then r = r - 0.1 'if the square of
'square roots
'bigger than n%
'move 1 step back
nr% = 0
do
if r < 1 then exit do else nr% = nr% + 1
r = r - 1
loop
print "The square root of ";n% is;r
print "And the nearest square is";nr%;"x";nr%;nr%xnr%