mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 11:18:43 +00:00
Converted repeat .. until .. -> do .. while .. od
This commit is contained in:
parent
297139c72a
commit
919cda5556
7 changed files with 17 additions and 18 deletions
|
|
@ -2,9 +2,9 @@ local s, n;
|
|||
|
||||
s := 0;
|
||||
|
||||
repeat
|
||||
do
|
||||
n := read ();
|
||||
s := s + n
|
||||
until (n == 0);
|
||||
while n != 0 od;
|
||||
|
||||
write (s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue