public class Solution {
public double Power(double base, int exponent) {
double result =1;
for(int i=1;i<=Math.abs(exponent);i++)
result*=base;
return exponent<0 ? 1/result : result;
}
}
java:public class Solution { public double Power(double base, int exponent) { double result =1; for(int i=1;i<=Math.abs(exponent);i++) result*=base; return...