You, the future math whiz, start by giving your friend a calculator. Then, you issue the following sequence of instructions. Make sure your friend presses the equals button (=) after each step!
And, amazingly, your friend's birthday will appear on the calculator screen! For example, let's suppose your friend was born on February 29. Below, I repeat the sequence of instructions, showing the result at each step in red.