Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Babbage-problem/Pascal/babbage-problem.pas
Normal file
11
Task/Babbage-problem/Pascal/babbage-problem.pas
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
program BabbageProblem;
|
||||
(* Anything bracketed off like this is an explanatory comment. *)
|
||||
var n : longint; (* The VARiable n can hold a 'long', ie large, INTeger. *)
|
||||
begin
|
||||
n := 2; (* Start with n equal to 2. *)
|
||||
repeat
|
||||
n := n + 2 (* Increase n by 2. *)
|
||||
until (n * n) mod 1000000 = 269696;
|
||||
(* 'n * n' means 'n times n'; 'mod' means 'modulo'. *)
|
||||
write(n)
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue