mirror of
https://github.com/vishapoberon/oberonbyexample.git
synced 2026-04-05 21:02:25 +00:00
changed tabs with spaces
This commit is contained in:
parent
e49b38df73
commit
d110fb0ac8
12 changed files with 132 additions and 119 deletions
|
|
@ -3,15 +3,18 @@ MODULE square;
|
|||
|
||||
IMPORT Out;
|
||||
|
||||
|
||||
VAR s : INTEGER;
|
||||
|
||||
|
||||
PROCEDURE squared(x : INTEGER): INTEGER;
|
||||
BEGIN
|
||||
RETURN x * x
|
||||
RETURN x * x
|
||||
END squared;
|
||||
|
||||
|
||||
BEGIN
|
||||
s := squared(7);
|
||||
Out.Int(s, 0); Out.Ln;
|
||||
Out.Int(squared(8), 0); Out.Ln;
|
||||
s := squared(7);
|
||||
Out.Int(s, 0); Out.Ln;
|
||||
Out.Int(squared(8), 0); Out.Ln;
|
||||
END square.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue