TDT4205/exercises/04/vslc/vsl_programs/ps3-simplify/constants.vsl

9 lines
190 B
Plaintext
Raw Normal View History

2022-03-12 18:09:07 +01:00
func main() begin
2022-03-17 23:13:55 +01:00
var a, b
2022-03-12 18:09:07 +01:00
a := 1 + 2 + 4 + 5 + 6 + 7 + 8 + 9
b := (10 + 10 * 4) * (2 + 2 * (1 + 1)) / 10 + 2 * 5 + 6 / 3
if a = b then
print "The answer is", b
end