-2

Ask the user to input a number. Check whether the entered number is a perfect square. I tried. enter image description here

1 Answers1

2
local num, nSqrt
Input "Enter a number" to num
IF m.num > 0 
  nSqrt = SQRT(m.num)
  IF m.nSqrt == INT(m.nSqrt)
    ? LTRIM(STR(m.num)) + ' is a perfect square'
  ENDIF
endif
Cetin Basoz
  • 22,495
  • 3
  • 31
  • 39