baum

diff examples/sum3input.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 fb1a879a7c85
children 6e46b106c334
line diff
     1.1 --- a/examples/sum3input.baum	Sat Mar 01 20:04:08 2008 +0100
     1.2 +++ b/examples/sum3input.baum	Sat Mar 01 20:10:02 2008 +0100
     1.3 @@ -1,5 +1,11 @@
     1.4  # example program for baum
     1.5  # http://prog.marmaro.de/baum
     1.6 +#
     1.7 +# asks the user to input 3 numbers
     1.8 +# then prints the sum of them
     1.9 +# and returns the sum to the shell
    1.10 +#
    1.11 +# Attention: expect number overflow!
    1.12  
    1.13  print(0)
    1.14  	sum(0)