changed 3.10.cpp to use multiplication instead of cmath pow()