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

15 lines
200 B
Plaintext
Raw Normal View History

2022-03-31 21:23:57 +02:00
// checking that comments are ignored
// This program checks the assignment operators
func main()
begin
var a
a := 3
a += 1
a /= 2
a *= 32
a -= 2
print a
return 0
end