baum

annotate examples/sum3input.baum @ 49:00de718c8590

Added tag 0.3 for changeset f9fc4c4f9e3d666dad2bd1efa627fb646334433c
author meillo@marmaro.de
date Sun, 02 Mar 2008 13:35:42 +0100
parents fb1a879a7c85
children 6e46b106c334
rev   line source
meillo@19 1 # example program for baum
meillo@19 2 # http://prog.marmaro.de/baum
meillo@39 3 #
meillo@39 4 # asks the user to input 3 numbers
meillo@39 5 # then prints the sum of them
meillo@39 6 # and returns the sum to the shell
meillo@39 7 #
meillo@39 8 # Attention: expect number overflow!
meillo@19 9
meillo@19 10 print(0)
meillo@19 11 sum(0)
meillo@19 12 input(0)
meillo@19 13 input(0)
meillo@19 14 input(0)