double ShowEm(double x, int n) { double result = 1.0; if (n < 0) return -1.0; for(result *= x; n > 0; --n) result *= x; return result; }