annotate 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
rev   line source
mike@0 1 (* lab1/repeat.p *)
mike@0 2
mike@0 3 begin
mike@0 4 i := 0;
mike@0 5 repeat
mike@0 6 i := i + 1;
mike@0 7 i := i * i;
mike@0 8 print i; newline
mike@0 9 until i mod 5 = 0
mike@0 10 end.
mike@0 11
mike@0 12 (*<<
mike@0 13 1
mike@0 14 4
mike@0 15 25
mike@0 16 >>*)