Arithmetic Exercises

These exercises allow you to practice using variables and arithmetic in assignment statements.

setup

method 1: Age in Five Years

Hello.  What is your name? Percy_Bysshe_Shelley

Hi, Percy_Bysshe_Shelley!  How old are you? 34

Did you know that in five years you will be 39 years old?
And five years ago you were 29!  Imagine that!

method 2: A Dumb Calculator

What is your first number? 1.1
What is your second number? 2.2
What is your third number? 5.5

( 1.1 + 2.2 + 5.5 ) / 3 is... 2.9333333333