Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Babbage-problem/Smalltalk/babbage-problem.st
Normal file
5
Task/Babbage-problem/Smalltalk/babbage-problem.st
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
"We use one variable, called n. Let it initially be equal to 1. Then keep increasing it by 1 for only as long as the remainder after dividing by a million is not equal to 269,696; finally, show the value of n."
|
||||
| n |
|
||||
n := 1.
|
||||
[ n squared \\ 1000000 = 269696 ] whileFalse: [ n := n + 1 ].
|
||||
n
|
||||
Loading…
Add table
Add a link
Reference in a new issue