I wanted to see square roots without decimals (=all decimals are zero) in a range of 1 to 2000
as I did not find a routine I coded this
It works, but perhaps that can be done shorter/easier....
Regards
Klaus
Peace worldwide - it starts here...
as I did not find a routine I coded this
Code:
*Calcmem.prg
*Calculate and show square numbers within range 1 to 2000
Clea
Set Decimals To 0
? "Number............SQRT"
For i = 1 To 2000
_Calcmem = i
If Sqrt(_Calcmem)=Int(Sqrt(_Calcmem))
?_Calcmem, Sqrt(_Calcmem)
Endif
Endfor
It works, but perhaps that can be done shorter/easier....
Regards
Klaus
Peace worldwide - it starts here...