diff examples/sum3input_v2.baum @ 39:96e2d58bc346

added new example program; added comments to example programs
author meillo@marmaro.de
date Sat, 01 Mar 2008 20:10:02 +0100
parents
children 6e46b106c334
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/sum3input_v2.baum	Sat Mar 01 20:10:02 2008 +0100
@@ -0,0 +1,17 @@
+# example program for baum
+# http://prog.marmaro.de/baum
+#
+# echoes the sum and a newline afterwards
+# then returns 0 to the shell
+#
+# see: sum3input.baum
+
+number(0)
+	sum(0)
+		print(0)
+			sum(0)
+				input(0)
+				input(0)
+				input(0)
+		print(99)
+			number(10)