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

14 lines
188 B
Plaintext
Raw Normal View History

2022-02-13 17:40:20 +01: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
end