RosettaCodeData/Task/Babbage-problem/IS-BASIC/babbage-problem-1.basic

8 lines
197 B
Plaintext

100 PROGRAM "Babbage.bas"
110 LET N=2
120 DO
130 LET N=N+2
140 LOOP UNTIL MOD(N*N,1000000)=269696
150 PRINT "The smallest number whose square ends in 269696 is:";N
160 PRINT "It's square is";N^2