Mercurial > baum
view examples/sum3input.baum @ 57:21ff1783f640
using function pointers now, instead of a large if-else
author | meillo@marmaro.de |
---|---|
date | Wed, 25 Jun 2008 09:20:16 +0200 |
parents | 6e46b106c334 |
children |
line wrap: on
line source
# example program for baum # http://prog.marmaro.de/baum # # asks the user to input 3 numbers # then prints the sum of them # and returns the sum to the shell # # Attention: expect number overflow! print(0) sum(0) create(0) create(0) create(0)