mirror of
https://github.com/vishapoberon/oberonbyexample.git
synced 2026-04-06 05:12:25 +00:00
post rebranding
This commit is contained in:
parent
4169aecd5b
commit
95b512baf4
66 changed files with 716 additions and 15 deletions
19
for/For.Mod
19
for/For.Mod
|
|
@ -1,19 +0,0 @@
|
|||
MODULE for;
|
||||
|
||||
IMPORT Out;
|
||||
|
||||
VAR
|
||||
i : INTEGER;
|
||||
|
||||
|
||||
BEGIN
|
||||
Out.String("i is "); Out.Int(i, 0); Out.Ln;
|
||||
Out.String("For loop started"); Out.Ln;
|
||||
FOR i := 0 TO 10 DO
|
||||
Out.String("i : "); Out.Int(i, 0); Out.Ln;
|
||||
END;
|
||||
Out.String("For-By loop started"); Out.Ln;
|
||||
FOR i := 0 TO 10 BY 2 DO
|
||||
Out.String("i : "); Out.Int(i, 0); Out.Ln;
|
||||
END;
|
||||
END for.
|
||||
Loading…
Add table
Add a link
Reference in a new issue