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

15 lines
200 B
Plaintext

// 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