TDT4205/exercises/06/vslc/vsl_programs/ps3-simplify/lists.vsl

33 lines
475 B
Plaintext
Raw Normal View History

2022-04-10 15:55:56 +02:00
func my_func(a, b, c, d, e, f, g, h) begin
var i, j, k, l, m
i := a + b + d
if i = f then begin
print "hmmm"
end
2022-04-22 00:03:10 +02:00
if 1 < 2 then begin
print "Whaa"
end
else begin
print "Whooo"
end
return i
2022-04-10 15:55:56 +02:00
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-22 00:03:10 +02:00
if my_func(1, 2, 3, 5, 8, 13, 21, 34) > 3 then begin
print "True!"
end
2022-04-22 18:40:36 +02:00
return 0
2022-04-10 15:55:56 +02:00
end