Skip to content

Commit 7a9d722

Browse files
committed
Format Pico examples.
1 parent 6347f27 commit 7a9d722

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
begin
2-
declare
3-
input : natural,
4-
output : natural,
5-
repnr : natural,
6-
rep : natural;
7-
1+
begin
2+
declare
3+
input : natural, output : natural, repnr : natural, rep : natural
4+
;
85
input := 6;
9-
while input - 1 do
6+
while input - 1 do
107
rep := output;
118
repnr := input;
129
while repnr - 1 do
@@ -15,4 +12,4 @@ begin
1512
od;
1613
input := input - 1
1714
od
18-
end
15+
end
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
begin
2-
declare
3-
input : natural,
4-
output : natural;
5-
6-
input := 0;
7-
output := 1;
8-
if input then
9-
output := 1
10-
else
11-
output := 2
12-
fi
13-
end
1+
begin
2+
declare
3+
input : natural, output : natural
4+
;
5+
input := 0;
6+
output := 1;
7+
if input then
8+
output := 1
9+
else
10+
output := 2
11+
fi
12+
end

0 commit comments

Comments
 (0)