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

9 lines
197 B
Plaintext
Raw Normal View History

2022-02-21 12:44:43 +01:00
func main() begin
var a, b, c
a := 1 + 2 + 4 + 5 + 6 + 7 + 8 + 9 - 1
b := (10 + 10 * 5) * (2 + 2 * (1 + 1)) / 10 + 2 * 5 + 6 / 3
2022-02-21 12:44:43 +01:00
if a = b then
print "The answer is", b
end