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

10 lines
203 B
Plaintext
Raw Normal View History

2022-03-31 21:23:57 +02:00
func main() begin
var a, b
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
return 0
end