Parent Directory | Revision Log | Patch
revision 3220 by schoenebeck, Wed Jun 11 13:24:32 2014 UTC | revision 3221 by schoenebeck, Fri May 26 18:30:42 2017 UTC | |
---|---|---|
# | Line 17 on init | Line 17 on init |
17 | $i := $i + 1 | $i := $i + 1 |
18 | end while | end while |
19 | ||
20 | %a[0] := 2 | %a[0] := 5 |
21 | %a[1] := 3 | %a[1] := 11 |
22 | %a[2] := 5 | %a[2] := 2 |
23 | %a[3] := 7 | %a[3] := 7 |
24 | %a[4] := 11 | %a[4] := 3 |
25 | ||
26 | message("") | message("") |
27 | message("New values of array:") | message("New values of array:") |
# | Line 32 on init | Line 32 on init |
32 | $i := $i + 1 | $i := $i + 1 |
33 | end while | end while |
34 | ||
35 | end on | sort(%a) |
36 | ||
37 | message("") | |
38 | message("Sorted values of array:") | |
39 | ||
40 | $i := 0 | |
41 | while ($i < $SIZE) | |
42 | message("array[" & $i & "] = " & %a[$i]) | |
43 | $i := $i + 1 | |
44 | end while | |
45 | ||
46 | end on |
|
ViewVC Help | |
Powered by ViewVC |