TDT4205/exercises/06/vslc/vsl_programs/ps5-codegen1/function_call.vsl

9 lines
126 B
Plaintext

func add(a, b) begin
print "adding", a, "and", b
return a + b
end
func main()
begin
print 2 + add(40, 2) + 2
end