256036 256 036
576081 576 081
144400 144 400
225625 225 625
324900 324 900
--------------------------------------------------
This was my program. While its output was in the format
above, I did have to add the leading zeroes for 36 and 81.
OPEN "6sqr.txt" FOR OUTPUT AS #1
FOR a = 1 TO 31
FOR b = 10 TO 31
c= b^2*10^3 + a^3
IF sqr(c) = int(sqr(c))THEN
PRINT c, b^2, a^2
PRINT #1, c, b^2, a^2
ENDIF
NEXT
NEXT
CLOSE 1
Comments: (
You must be logged in to post comments.)