diff --git a/Console/Program.cs b/Console/Program.cs index 56bb8606..c967500a 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -84,8 +84,8 @@ public static double Divide(string x, string y) } // Implement this method following a similar pattern as above - public static double Power(string x, string y) - { - return 0.0; - } +public static double Power(string x, string y) +{ + return Math.Pow(double.Parse(x), double.Parse(y)); } +} \ No newline at end of file