TDT4205/exercises/05/vslc/vsl_programs/ps2-parser/function_call.vsl

10 lines
111 B
Plaintext
Raw Normal View History

2022-03-31 21:23:57 +02:00
func add(a, b) begin
2022-04-03 22:40:33 +02:00
a := -a
2022-03-31 21:23:57 +02:00
return a + b
end
func main()
begin
print add(40, 2)
return 0
end