Discussion 1-12

Today we wrote arithmetic.cpp, demoing basic arithmetic operations in C++.

If you're bored, you should try to figure out how the % operator works with negative numbers (without just looking it up!). Try making a table just like I did in class to show the result a%b for a bunch of different inputs with a and/or b negative. Then see if you can spot the pattern!