comparison 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
comparison
equal deleted inserted replaced
38:ff01f0f076e4 39:96e2d58bc346
1 # example program for baum 1 # example program for baum
2 # http://prog.marmaro.de/baum 2 # http://prog.marmaro.de/baum
3 #
4 # asks the user to input 3 numbers
5 # then prints the sum of them
6 # and returns the sum to the shell
7 #
8 # Attention: expect number overflow!
3 9
4 print(0) 10 print(0)
5 sum(0) 11 sum(0)
6 input(0) 12 input(0)
7 input(0) 13 input(0)