comparison lab1/repeat.p @ 0:bfdcc3820b32

Basis
author Mike Spivey <mike@cs.ox.ac.uk>
date Thu, 05 Oct 2017 08:04:15 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bfdcc3820b32
1 (* lab1/repeat.p *)
2
3 begin
4 i := 0;
5 repeat
6 i := i + 1;
7 i := i * i;
8 print i; newline
9 until i mod 5 = 0
10 end.
11
12 (*<<
13 1
14 4
15 25
16 >>*)