Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Babbage-problem/XBasic/babbage-problem.basic
Normal file
15
Task/Babbage-problem/XBasic/babbage-problem.basic
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
PROGRAM "Babbage problem"
|
||||
VERSION "0.0000"
|
||||
|
||||
DECLARE FUNCTION Entry ()
|
||||
|
||||
FUNCTION Entry ()
|
||||
number = 524
|
||||
DO
|
||||
number = number + 2
|
||||
LOOP UNTIL ((number ** 2) MOD 1000000) = 269696
|
||||
PRINT "The smallest number whose square ends in 269696 is: "; number
|
||||
PRINT "It's square is "; number ** 2
|
||||
PRINT "It's square is "; number * number
|
||||
END FUNCTION
|
||||
END PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue