RosettaCodeData/Task/Babbage-problem/REXX/babbage-problem-1.rexx
2023-07-01 13:44:08 -04:00

5 lines
440 B
Rexx

/*REXX program finds the lowest (positive) integer whose square ends in 269,696. */
do j=2 by 2 until right(j * j, 6) == 269696 /*start J at two, increment by two. */
end /*◄── signifies the end of the DO loop.*/
/* [↑] * means multiplication. */
say "The smallest integer whose square ends in 269,696 is: " j