Translate the following expression into code: $\frac{1.3/1.2 + 4.3 \times 2.0}{1.5 - 2.3}$
Check if 4431 and 7523 are equal mod 7.
Define pi using the approximation $\frac{355}{113}$. Use it to compute the circumference and area of a circle of radius 5. (There's a subtle error which can occur in this problem! Try printing out pi after defining it. Do you get an unexpected answer? What do you think happened?)
Write a short function which decides if an integer is even.
Fill the details for the absolute value function.
Write a function which squares a number and then use it to write a function which takes three integers and returns the sum of their squares.
Write a function which computes the factorial of an integer.
Write a function which adds up the squares of the first $n$ odd integers.
Write a function which prints the natural numbers less than $n$ which are divisible by 3, divisible by 5 but not divisible by 10.
Write a program which prints out an 16 x 16 "chess board" which indicates a black square with a 'B' and a white square with a 'W'.
Print out the first ten Fibonacci numbers.
Try reimplementing the factorial function using either a while loop or an iterator. Which do you think is better? Which do you think is easier to understand?