TDT4205/exercises/05/vslc/vsl_programs/ps5-codegen1/lists.vsl

22 lines
332 B
Plaintext
Raw Normal View History

2022-04-02 20:15:06 +02:00
func my_func(a, b, c, d, e, f, g, h) begin
var i, j, k, l, m
2022-04-03 22:40:33 +02:00
i := a + ~(i + 4)
i := a + (b + d) * (3 + b)
2022-04-02 20:15:06 +02:00
if i = f then begin
print "hmmm"
end
return i
end
func main() begin
var n, o, p, q, r, s, t, u, v, w
n := 5
n += my_func(1, 2, 3, 5, 8, 13, 21, 34)
2022-04-03 22:40:33 +02:00
print n
2022-04-02 20:15:06 +02:00
return 0
end