diff options
Diffstat (limited to 'data/math/apples')
-rw-r--r-- | data/math/apples | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/math/apples b/data/math/apples new file mode 100644 index 0000000..ee726c7 --- /dev/null +++ b/data/math/apples @@ -0,0 +1,15 @@ +print "Let's do math!" + +print "On Monday I picked 22 apples. On Tuesday I picked 12." + +print "Now I have: ", 22 + 12 + +print "My brother says he picked twice as many apples last week." + +print "This means he picked: ", (22 + 12) * 2 + +print "I have 3 friends I would like to give apples." + +print "One third of my apples is about: ", (22 + 12) / 3 + +print "Or, more exactly: ", (22.0 + 12.0) / 3.0 |