baum

view examples/sum3input_v2.baum @ 42:233ac9bea4f1

switched exit code 127 to 126 (because shell returns 127 if command not found)
author meillo@marmaro.de
date Sat, 01 Mar 2008 20:41:35 +0100
parents
children 6e46b106c334
line source
1 # example program for baum
2 # http://prog.marmaro.de/baum
3 #
4 # echoes the sum and a newline afterwards
5 # then returns 0 to the shell
6 #
7 # see: sum3input.baum
9 number(0)
10 sum(0)
11 print(0)
12 sum(0)
13 input(0)
14 input(0)
15 input(0)
16 print(99)
17 number(10)