Example code from [K&R][chapter 1.7], test power function.